diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 04:24:46 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 04:24:46 +0000 |
commit | cddc9dfe975c3152a2db955b24cb6b4ee457e571 (patch) | |
tree | a06773a4c05b5949c043c0246fcb64b88f073653 /llvm/lib/Target/CBackend/CBackend.cpp | |
parent | e4c7fcd1bd0e85b1dc83bed2c8a293cbd1514317 (diff) | |
download | bcm5719-llvm-cddc9dfe975c3152a2db955b24cb6b4ee457e571.tar.gz bcm5719-llvm-cddc9dfe975c3152a2db955b24cb6b4ee457e571.zip |
Implement review feedback for the ConstantBool->ConstantInt merge. Chris
recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.
llvm-svn: 33110
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CBackend/CBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index f945036a74b..23465c5f6e4 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -829,7 +829,7 @@ void CWriter::printConstant(Constant *CPV) { if (ConstantInt *CI = dyn_cast<ConstantInt>(CPV)) { const Type* Ty = CI->getType(); if (Ty == Type::Int1Ty) - Out << (CI->getBoolValue() ? '1' : '0') ; + Out << (CI->getZExtValue() ? '1' : '0') ; else { Out << "(("; printPrimitiveType(Out, Ty, false) << ')'; |