summaryrefslogtreecommitdiff
path: root/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
commite368b460a206fafa0d31d5d059b1779b94f7df8c (patch)
tree73508159acd14e76dc92313df355849ee75ec35d /lib/Target/TargetLoweringObjectFile.cpp
parent7720cb3823d5b5868f9b88b0127277820edcb562 (diff)
downloadllvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.gz
llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.bz2
llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.xz
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index b9372d04bb..dd7b532bbf 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/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.