[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp

Jim Laskey jlaskey at apple.com
Tue Jul 11 10:58:23 PDT 2006



Changes in directory llvm/lib/Analysis/IPA:

Andersens.cpp updated: 1.28 -> 1.29
---
Log message:

Ensure that dump calls that are associated with asserts are removed from
non-debug build.


---
Diffs of the changes:  (+2 -3)

 Andersens.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/Analysis/IPA/Andersens.cpp
diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.28 llvm/lib/Analysis/IPA/Andersens.cpp:1.29
--- llvm/lib/Analysis/IPA/Andersens.cpp:1.28	Wed May 24 12:04:04 2006
+++ llvm/lib/Analysis/IPA/Andersens.cpp	Tue Jul 11 12:58:07 2006
@@ -260,9 +260,8 @@
 
       std::map<Value*, unsigned>::iterator I = ValueNodes.find(V);
       if (I == ValueNodes.end()) {
-        V->dump();
-        assert(I != ValueNodes.end() &&
-               "Value does not have a node in the points-to graph!");
+        DEBUG(V->dump());
+        assert(0 && "Value does not have a node in the points-to graph!");
       }
       return &GraphNodes[I->second];
     }






More information about the llvm-commits mailing list