[llvm-commits] [poolalloc] r132817 - /poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu Jun 9 16:26:30 PDT 2011
Author: aggarwa4
Date: Thu Jun 9 18:26:30 2011
New Revision: 132817
URL: http://llvm.org/viewvc/llvm-project?rev=132817&view=rev
Log:
Only replace direct calls here.
Modified:
poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=132817&r1=132816&r2=132817&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Thu Jun 9 18:26:30 2011
@@ -637,6 +637,8 @@
CallInst *CI = dyn_cast<CallInst>(ui++);
if(!CI)
continue;
+ if(CI->getCalledValue()->stripPointerCasts() != &F)
+ continue;
std::vector<Value *> Args;
unsigned int i;
unsigned int NumArgs = CI->getNumOperands() - 1;
More information about the llvm-commits
mailing list