diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-28 22:50:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-28 22:50:29 +0000 |
commit | 94e39cbdfea75854ac40c34bbaac6f07148f8c62 (patch) | |
tree | ed6857017b0561006fafee21d6e43a6741ccb4d3 /llvm/lib | |
parent | 5f2b79ec4c7185d131e02af223d025b90bd6b596 (diff) | |
download | bcm5719-llvm-94e39cbdfea75854ac40c34bbaac6f07148f8c62.tar.gz bcm5719-llvm-94e39cbdfea75854ac40c34bbaac6f07148f8c62.zip |
simplify code
llvm-svn: 30655
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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)) { |