diff options
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index b9c3663..41666e8 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -571,9 +571,9 @@ unsigned Module::getCodeViewFlag() const { return cast<ConstantInt>(Val->getValue())->getZExtValue(); } -unsigned Module::getInstructionCount() { +unsigned Module::getInstructionCount() const { unsigned NumInstrs = 0; - for (Function &F : FunctionList) + for (const Function &F : FunctionList) NumInstrs += F.getInstructionCount(); return NumInstrs; } |