From ca9f7efdf8eeffcabd95609c3bb7d481164a0d79 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 29 Jun 2010 06:46:00 +0000 Subject: [PATCH] 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 --- lib/Analysis/BasicAliasAnalysis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index c2ae32f0132..7a334ff8464 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -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 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);