simplify code
authorChris Lattner <sabre@nondot.org>
Thu, 28 Sep 2006 23:17:41 +0000 (23:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Sep 2006 23:17:41 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30659 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 013da748c208cd6e06fe2100e1d27964b4c14ae0..7e536aef8df52e4d5cd2e07494c6e151b69a8c14 100644 (file)
@@ -364,7 +364,7 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
   if (CV->isNullValue() || isa<UndefValue>(CV))
     O << "0";
   else if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
-    assert(CB == ConstantBool::True);
+    assert(CB->getValue());
     O << "1";
   } else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV))
     if (((CI->getValue() << 32) >> 32) == CI->getValue())