[llvm-commits] [llvm] r38477 - /llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp
Owen Anderson
resistor at mac.com
Mon Jul 9 16:57:18 PDT 2007
Author: resistor
Date: Mon Jul 9 18:57:18 2007
New Revision: 38477
URL: http://llvm.org/viewvc/llvm-project?rev=38477&view=rev
Log:
Add an assertion if find_leader fails.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp?rev=38477&r1=38476&r2=38477&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVNPRE.cpp Mon Jul 9 18:57:18 2007
@@ -695,6 +695,7 @@
if (v == VN.lookup(*I))
return *I;
+ assert(0 && "No leader found, but present bit is set?");
return 0;
}
More information about the llvm-commits
mailing list