diff options
| -rw-r--r-- | llvm/include/llvm/Analysis/CodeMetrics.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Analysis/CodeMetrics.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/CodeMetrics.h b/llvm/include/llvm/Analysis/CodeMetrics.h index f512aca5786..9e861ac1882 100644 --- a/llvm/include/llvm/Analysis/CodeMetrics.h +++ b/llvm/include/llvm/Analysis/CodeMetrics.h @@ -87,7 +87,7 @@ struct CodeMetrics { /// \brief Add information about a block to the current state. void analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI, - SmallPtrSetImpl<const Value*> &EphValues); + const SmallPtrSetImpl<const Value*> &EphValues); /// \brief Collect a loop's ephemeral values (those used only by an assume /// or similar intrinsics in the loop). diff --git a/llvm/lib/Analysis/CodeMetrics.cpp b/llvm/lib/Analysis/CodeMetrics.cpp index ed8370498dd..576dca4b42c 100644 --- a/llvm/lib/Analysis/CodeMetrics.cpp +++ b/llvm/lib/Analysis/CodeMetrics.cpp @@ -104,7 +104,7 @@ void CodeMetrics::collectEphemeralValues( /// block. void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI, - SmallPtrSetImpl<const Value*> &EphValues) { + const SmallPtrSetImpl<const Value*> &EphValues) { ++NumBlocks; unsigned NumInstsBeforeThisBB = NumInsts; for (const Instruction &I : *BB) { |

