diff options
| author | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-06-18 14:22:04 +0000 |
| commit | bcc946d7409ba0d8918f4d0256090ff1a8b90392 (patch) | |
| tree | 73508159acd14e76dc92313df355849ee75ec35d /include/llvm/IntrinsicInst.h | |
| parent | 1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4 (diff) | |
| download | external_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.zip external_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.tar.gz external_llvm-bcc946d7409ba0d8918f4d0256090ff1a8b90392.tar.bz2 | |
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 'include/llvm/IntrinsicInst.h')
| -rw-r--r-- | include/llvm/IntrinsicInst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index 5b0e90f..4402b12 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -136,7 +136,7 @@ namespace llvm { return cast<ConstantInt>(const_cast<Value*>(getOperand(5))); } bool isVolatile() const { - return getVolatileCst()->getZExtValue() != 0; + return !getVolatileCst()->isZero(); } /// getDest - This is just like getRawDest, but it strips off any cast |
