[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

Chris Lattner sabre at nondot.org
Tue Feb 13 22:20:25 PST 2007



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.166 -> 1.167
---
Log message:

>From Dan Gohman:

While preparing http://llvm.org/PR1198: http://llvm.org/PR1198  I noticed several asserts
protecting unprepared code from i128 types that weren't actually failing
when they should because they were written as assert("foo") instead of
something like assert(0 && "foo"). This patch fixes all the cases that a
quick grep found.



---
Diffs of the changes:  (+1 -1)

 Writer.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.166 llvm/lib/Bytecode/Writer/Writer.cpp:1.167
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.166	Sun Feb 11 23:18:08 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Wed Feb 14 00:20:04 2007
@@ -313,7 +313,7 @@
     else if (NumBits <= 64)
       output_vbr(uint64_t(cast<ConstantInt>(CPV)->getZExtValue()));
     else 
-      assert("Integer types > 64 bits not supported.");
+      assert(0 && "Integer types > 64 bits not supported.");
     break;
   }
 






More information about the llvm-commits mailing list