mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
bug 122:
Simplify a conditional operator for a constant result from GV->isNullValue() llvm-svn: 15001
This commit is contained in:
parent
7cdfccd573
commit
0bdb3605c7
@ -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…
Reference in New Issue
Block a user