From 4da5e17cfc5befdfc6f77df2ed8cd3266b73b0e0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 Feb 2007 06:20:04 +0000 Subject: From Dan Gohman: While preparing 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. llvm-svn: 34267 --- llvm/lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp') diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index d1610515362..d516910d80f 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -1265,7 +1265,7 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) { Result = ConstantInt::get(IT, Val); if (Handler) Handler->handleConstantValue(Result); } else - assert("Integer types > 64 bits not supported"); + assert(0 && "Integer types > 64 bits not supported"); break; } case Type::FloatTyID: { -- cgit v1.2.3