[llvm-commits] [llvm] r107124 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Chandler Carruth chandlerc at gmail.com
Mon Jun 28 23:46:00 PDT 2010


Author: chandlerc
Date: Tue Jun 29 01:46:00 2010
New Revision: 107124

URL: http://llvm.org/viewvc/llvm-project?rev=107124&view=rev
Log:
Jump through some silly hoops to make GCC accept that a function may not always
be called.

Modified:
    llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=107124&r1=107123&r2=107124&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Tue Jun 29 01:46:00 2010
@@ -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 @@
   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);





More information about the llvm-commits mailing list