aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-19 13:25:02 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-19 13:25:02 +0000
commit2a4cb68ea68a6544c43ad8c461b0e93386496080 (patch)
tree25f8a771a8ee8f3ce4773a428b0a7dc31b0aaa0e
parentf4fc36e738a208921d6debecb258d6acd2e3b628 (diff)
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
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index f672b5dc6d..c2ffceed6e 100644
--- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/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