commit | bcc946d7409ba0d8918f4d0256090ff1a8b90392 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Jun 18 14:22:04 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Jun 18 14:22:04 2010 +0000 |
tree | 73508159acd14e76dc92313df355849ee75ec35d | |
parent | 1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4 [diff] [blame] |
Eliminate unnecessary uses of getZExtValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index 399fb8d..6673931 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp
@@ -210,7 +210,7 @@ if (Val + 4 == NumOps) { if (ConstantInt *FinalVal = dyn_cast<ConstantInt>(II->getOperand(NumOps - 1))) - return (FinalVal->getZExtValue() == 0); + return FinalVal->isZero(); } } }