diff options
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 1647f51da9..268d3f5cfc 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -434,10 +434,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV, if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) { Out << (CB->getValue() ? "true" : "false"); } else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { - if (CI->getType()->isSigned()) - Out << CI->getSExtValue(); - else - Out << CI->getZExtValue(); + Out << CI->getSExtValue(); } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) { // We would like to output the FP constant value in exponential notation, // but we cannot do this if doing so will lose precision. Check here to |