From: Chris Lattner Date: Thu, 28 Sep 2006 23:17:41 +0000 (+0000) Subject: simplify code X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8f791ef1e8f0e58206dc60b1afa43d93fd46520;p=oota-llvm.git simplify code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30659 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 013da748c20..7e536aef8df 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -364,7 +364,7 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) { if (CV->isNullValue() || isa(CV)) O << "0"; else if (const ConstantBool *CB = dyn_cast(CV)) { - assert(CB == ConstantBool::True); + assert(CB->getValue()); O << "1"; } else if (const ConstantSInt *CI = dyn_cast(CV)) if (((CI->getValue() << 32) >> 32) == CI->getValue())