Fix -pedantic warning
authorChris Lattner <sabre@nondot.org>
Thu, 1 Jun 2006 17:17:46 +0000 (17:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Jun 2006 17:17:46 +0000 (17:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28634 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CallGraph.h
lib/Analysis/IPA/CallGraph.cpp

index 5602cec26ec124123836f28d6fb41eab7b61131e..e51a3c7fb1811d2c338a4d43816f2ae5decf924f 100644 (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
 
index 71b303beca9b218d0709eba20543de46bf4826d5..f8846d390a59d0749d04428907d32a48a7676413 100644 (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;