Fix -pedantic warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-06-01 17:17:46 +00:00
parent 08a9a985dc
commit 080e25d884
2 changed files with 3 additions and 3 deletions

View File

@ -291,8 +291,8 @@ template<> struct GraphTraits<const CallGraph*> :
static IncludeFile
CALLGRAPH_INCLUDE_FILE(&CallGraph::stub);
extern void BasicCallGraphStub();
static IncludeFile HDR_INCLUDE_CALLGRAPH_CPP((void*)&BasicCallGraphStub);
extern int BasicCallGraphStub;
static IncludeFile HDR_INCLUDE_CALLGRAPH_CPP(&BasicCallGraphStub);
} // End llvm namespace

View File

@ -19,7 +19,7 @@
#include <iostream>
using namespace llvm;
void llvm::BasicCallGraphStub() {}
int llvm::BasicCallGraphStub;
static bool isOnlyADirectCall(Function *F, CallSite CS) {
if (!CS.getInstruction()) return false;