[llvm-commits] [poolalloc] r58645 - /poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
John Criswell
criswell at uiuc.edu
Mon Nov 3 14:28:16 PST 2008
Author: criswell
Date: Mon Nov 3 16:28:16 2008
New Revision: 58645
URL: http://llvm.org/viewvc/llvm-project?rev=58645&view=rev
Log:
Create another work around for using bugpoint on automatic pool allocation.
Modified:
poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=58645&r1=58644&r2=58645&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Mon Nov 3 16:28:16 2008
@@ -661,6 +661,8 @@
assert (CF && "No call graph info");
// Get the common graph for the set of functions this call may invoke.
+ if (UsingBugpoint && (!(Graphs.hasDSGraph(*CF)))) return;
+ assert ((Graphs.hasDSGraph(*CF)) && "Function has no DSGraph!\n");
CalleeGraph = Graphs.getDSGraph(*CF);
#ifndef NDEBUG
More information about the llvm-commits
mailing list