mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
bug 122:
Simplify a conditional operator for a constant result from GV->isNullValue() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4fc36e738
commit
2a4cb68ea6
@ -62,8 +62,7 @@ SparcV9InstrInfo::ConvertConstantToIntType(const TargetMachine &target,
|
||||
// GlobalValue: no conversions needed: get value and return it
|
||||
if (const GlobalValue* GV = dyn_cast<GlobalValue>(V)) {
|
||||
isValidConstant = true; // may be overwritten by recursive call
|
||||
return GV->isNullValue() ? 0 :
|
||||
ConvertConstantToIntType(target, GV, destType, isValidConstant);
|
||||
return ConvertConstantToIntType(target, GV, destType, isValidConstant);
|
||||
}
|
||||
|
||||
// ConstantBool: no conversions needed: get value and return it
|
||||
|
Loading…
x
Reference in New Issue
Block a user