[llvm-commits] [poolalloc] r132739 - /poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Jun 7 19:01:45 PDT 2011
Author: aggarwa4
Date: Tue Jun 7 21:01:45 2011
New Revision: 132739
URL: http://llvm.org/viewvc/llvm-project?rev=132739&view=rev
Log:
track Global is also used for gep's into globals.
Treat as Value instead of globalvalue.
Modified:
poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp
Modified: poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp?rev=132739&r1=132738&r2=132739&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecksOpt.cpp Tue Jun 7 21:01:45 2011
@@ -112,7 +112,7 @@
CallInst *CI = dyn_cast<CallInst>(User);
assert(CI);
- if(TS->isTypeSafe(cast<GlobalValue>(CI->getOperand(1)->stripPointerCasts()))) {
+ if(TS->isTypeSafe((CI->getOperand(1)->stripPointerCasts(), CI->getParent()->getParent()))) {
toDelete.push_back(CI);
}
}
More information about the llvm-commits
mailing list