Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.206 -> 1.207 --- Log message: simplify code --- Diffs of the changes: (+1 -1) AsmWriter.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/AsmWriter.cpp diff -u llvm/lib/VMCore/AsmWriter.cpp:1.206 llvm/lib/VMCore/AsmWriter.cpp:1.207 --- llvm/lib/VMCore/AsmWriter.cpp:1.206 Wed Sep 20 17:03:51 2006 +++ llvm/lib/VMCore/AsmWriter.cpp Thu Sep 28 17:50:29 2006 @@ -421,7 +421,7 @@ const int IndentSize = 4; static std::string Indent = "\n"; if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) { - Out << (CB == ConstantBool::True ? "true" : "false"); + Out << (CB->getValue() ? "true" : "false"); } else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV)) { Out << CI->getValue(); } else if (const ConstantUInt *CI = dyn_cast<ConstantUInt>(CV)) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits