summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
commitf1d8304fe31b7f840bd63a6d173587998ca877b8 (patch)
tree79a18454925de7b467ce2c477fdb5a0011b33f6f /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent35b6f9a92944931204ef01153fe9c0145a6c5a90 (diff)
downloadbcm5719-llvm-f1d8304fe31b7f840bd63a6d173587998ca877b8.tar.gz
bcm5719-llvm-f1d8304fe31b7f840bd63a6d173587998ca877b8.zip
Eliminate unnecessary uses of getZExtValue().
llvm-svn: 106279
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index b9372d04bb1..dd7b532bbfb 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -101,7 +101,7 @@ static bool IsNullTerminatedString(const Constant *C) {
ConstantInt *Null =
dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1));
- if (Null == 0 || Null->getZExtValue() != 0)
+ if (Null == 0 || !Null->isZero())
return false; // Not null terminated.
// Verify that the null doesn't occur anywhere else in the string.
OpenPOWER on IntegriCloud