Index: llvm/trunk/include/llvm/Analysis/CodeMetrics.h =================================================================== --- llvm/trunk/include/llvm/Analysis/CodeMetrics.h +++ llvm/trunk/include/llvm/Analysis/CodeMetrics.h @@ -87,7 +87,7 @@ /// \brief Add information about a block to the current state. void analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI, - SmallPtrSetImpl &EphValues); + const SmallPtrSetImpl &EphValues); /// \brief Collect a loop's ephemeral values (those used only by an assume /// or similar intrinsics in the loop). Index: llvm/trunk/lib/Analysis/CodeMetrics.cpp =================================================================== --- llvm/trunk/lib/Analysis/CodeMetrics.cpp +++ llvm/trunk/lib/Analysis/CodeMetrics.cpp @@ -104,7 +104,7 @@ /// block. void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI, - SmallPtrSetImpl &EphValues) { + const SmallPtrSetImpl &EphValues) { ++NumBlocks; unsigned NumInstsBeforeThisBB = NumInsts; for (const Instruction &I : *BB) {