summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-28 23:17:41 +0000
committerChris Lattner <sabre@nondot.org>2006-09-28 23:17:41 +0000
commiteea983eb5d964185eab006a524d58cbac20795d3 (patch)
treeae9b2d08ef0f92420ea0f0ab13dcff95832dd204 /llvm/lib/CodeGen/AsmPrinter.cpp
parenta7b5664318d289873dfae9cb38d5765c66b5ecf9 (diff)
downloadbcm5719-llvm-eea983eb5d964185eab006a524d58cbac20795d3.tar.gz
bcm5719-llvm-eea983eb5d964185eab006a524d58cbac20795d3.zip
simplify code
llvm-svn: 30659
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 013da748c20..7e536aef8df 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud