summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index f672b5dc6d5..c2ffceed6e9 100644
--- a/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp
@@ -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
OpenPOWER on IntegriCloud