From 94e39cbdfea75854ac40c34bbaac6f07148f8c62 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Sep 2006 22:50:29 +0000 Subject: simplify code llvm-svn: 30655 --- llvm/lib/VMCore/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 6b8f14971a0..6b08266c312 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -421,7 +421,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV, const int IndentSize = 4; static std::string Indent = "\n"; if (const ConstantBool *CB = dyn_cast(CV)) { - Out << (CB == ConstantBool::True ? "true" : "false"); + Out << (CB->getValue() ? "true" : "false"); } else if (const ConstantSInt *CI = dyn_cast(CV)) { Out << CI->getValue(); } else if (const ConstantUInt *CI = dyn_cast(CV)) { -- cgit v1.2.3