[llvm-commits] [poolalloc] r132858 - /poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Fri Jun 10 14:23:35 PDT 2011
Author: aggarwa4
Date: Fri Jun 10 16:23:35 2011
New Revision: 132858
URL: http://llvm.org/viewvc/llvm-project?rev=132858&view=rev
Log:
Do not replace uses where the function is passed
to external functions as argument.
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=132858&r1=132857&r2=132858&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Fri Jun 10 16:23:35 2011
@@ -366,6 +366,10 @@
continue;
}
}
+ if(CallInst *CI = dyn_cast<CallInst>(user)) {
+ if(CI->getCalledFunction()->isDeclaration())
+ continue;
+ }
user->replaceUsesOfWith(F, CNew);
}
}
More information about the llvm-commits
mailing list