mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 21:56:15 +00:00
Remove a call to Type::isSigned().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdf15e1dc8
commit
f6c511cbb1
@ -680,9 +680,7 @@ void CppWriter::printConstant(const Constant *CV) {
|
||||
<< (CB->getValue() ? "true" : "false") << ");";
|
||||
} else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
|
||||
Out << "ConstantInt* " << constName << " = ConstantInt::get("
|
||||
<< typeName << ", "
|
||||
<< (CV->getType()->isSigned() ? CI->getSExtValue() : CI->getZExtValue())
|
||||
<< ");";
|
||||
<< typeName << ", " << CI->getZExtValue() << ");";
|
||||
} else if (isa<ConstantAggregateZero>(CV)) {
|
||||
Out << "ConstantAggregateZero* " << constName
|
||||
<< " = ConstantAggregateZero::get(" << typeName << ");";
|
||||
|
Loading…
Reference in New Issue
Block a user