diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-28 23:17:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-28 23:17:41 +0000 |
commit | f8f791ef1e8f0e58206dc60b1afa43d93fd46520 (patch) | |
tree | cc2baa03b3621e450741fc6aa364b6cfe15df8da | |
parent | 193c2d886f96944fa5e4ecb9298a829a84bb8127 (diff) |
simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30659 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 013da748c2..7e536aef8d 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<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()) |