const-ize a predicate

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2010-04-09 10:57:00 +00:00
parent 7b0138ffab
commit ea3eec9f85

View File

@ -1333,8 +1333,8 @@ static Value *ConstructSSAForLoadSet(LoadInst *LI,
return V; return V;
} }
static bool isLifetimeStart(Instruction *Inst) { static bool isLifetimeStart(const Instruction *Inst) {
if (IntrinsicInst* II = dyn_cast<IntrinsicInst>(Inst)) if (const IntrinsicInst* II = dyn_cast<IntrinsicInst>(Inst))
return II->getIntrinsicID() == Intrinsic::lifetime_start; return II->getIntrinsicID() == Intrinsic::lifetime_start;
return false; return false;
} }