diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-04-09 10:57:00 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-04-09 10:57:00 +0000 |
commit | ea3eec9f8588a1fe0fe80324d1413ab165b675ca (patch) | |
tree | cadeb048eec97b8957e567e9c3fe5b44d8131c84 | |
parent | 7b0138ffabb3372e7e67177f26f04f847ac69efc (diff) | |
download | external_llvm-ea3eec9f8588a1fe0fe80324d1413ab165b675ca.zip external_llvm-ea3eec9f8588a1fe0fe80324d1413ab165b675ca.tar.gz external_llvm-ea3eec9f8588a1fe0fe80324d1413ab165b675ca.tar.bz2 |
const-ize a predicate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100856 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 642d59d..2c62815 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1333,8 +1333,8 @@ static Value *ConstructSSAForLoadSet(LoadInst *LI, return V; } -static bool isLifetimeStart(Instruction *Inst) { - if (IntrinsicInst* II = dyn_cast<IntrinsicInst>(Inst)) +static bool isLifetimeStart(const Instruction *Inst) { + if (const IntrinsicInst* II = dyn_cast<IntrinsicInst>(Inst)) return II->getIntrinsicID() == Intrinsic::lifetime_start; return false; } |