Jump through some silly hoops to make GCC accept that a function may not always

be called.

llvm-svn: 107124
This commit is contained in:
Chandler Carruth 2010-06-29 06:46:00 +00:00
parent 6349fa5ec4
commit e9bf8c4ee8

View File

@ -29,6 +29,7 @@
#include "llvm/Target/TargetData.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include <algorithm>
using namespace llvm;
@ -207,6 +208,8 @@ static const Function *getParent(const Value *V) {
return NULL;
}
static bool sameParent(const Value *O1, const Value *O2) ATTRIBUTE_UNUSED;
static bool sameParent(const Value *O1, const Value *O2) {
const Function *F1 = getParent(O1);