From: Pete Cooper Date: Tue, 12 May 2015 20:05:20 +0000 (+0000) Subject: Constify method. NFC X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=94f1e3c66eed09cb4cd749bb570984edac1320c9;p=oota-llvm.git Constify method. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237167 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 0b98f6c2c12..b692866f54a 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -490,7 +490,7 @@ bool canSinkOrHoistInst(Instruction &I, AliasAnalysis *AA, DominatorTree *DT, /// This is true when all incoming values are that instruction. /// This pattern occurs most often with LCSSA PHI nodes. /// -static bool isTriviallyReplacablePHI(PHINode &PN, Instruction &I) { +static bool isTriviallyReplacablePHI(const PHINode &PN, const Instruction &I) { for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) if (PN.getIncomingValue(i) != &I) return false;