Jump through some silly hoops to make GCC accept that a function may not always
authorChandler Carruth <chandlerc@gmail.com>
Tue, 29 Jun 2010 06:46:00 +0000 (06:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 29 Jun 2010 06:46:00 +0000 (06:46 +0000)
be called.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107124 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index c2ae32f0132b357ecac9b7f21a9c20be03846f94..7a334ff8464bc816e33ced4ed2e694b3be50544f 100644 (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);