diff options
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 6b8f14971a..6b08266c31 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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)) { |