[llvm-commits] [poolalloc] r118870 - /poolalloc/trunk/lib/DSA/DataStructureStats.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu Nov 11 17:08:09 PST 2010
Author: aggarwa4
Date: Thu Nov 11 19:08:09 2010
New Revision: 118870
URL: http://llvm.org/viewvc/llvm-project?rev=118870&view=rev
Log:
Fixes some failures while running DSA tests.
Modified:
poolalloc/trunk/lib/DSA/DataStructureStats.cpp
Modified: poolalloc/trunk/lib/DSA/DataStructureStats.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DataStructureStats.cpp?rev=118870&r1=118869&r2=118870&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DataStructureStats.cpp (original)
+++ poolalloc/trunk/lib/DSA/DataStructureStats.cpp Thu Nov 11 19:08:09 2010
@@ -78,6 +78,11 @@
if (CastInst *CI = dyn_cast<CastInst>(V))
return isIndirectCallee(CI->getOperand(0));
+
+ if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
+ if (CE->isCast())
+ return isIndirectCallee(CE->getOperand(0));
+
return true;
}
More information about the llvm-commits
mailing list