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

be called.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2010-06-29 06:46:00 +00:00
parent c36b5b9730
commit ca9f7efdf8

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);