summaryrefslogtreecommitdiff
path: root/tools/llvm-lto
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-10-19 19:06:06 +0000
committerTeresa Johnson <tejohnson@google.com>2015-10-19 19:06:06 +0000
commitca21c56a5f5d4754f277d3547bf85446fc1636df (patch)
tree9393937afe746cd15a1d54338e9e5442a0fe984a /tools/llvm-lto
parent4438c623f75083ad198845643469366fb22ba782 (diff)
Pass FunctionInfoIndex by reference to WriteFunctionSummaryToFile (NFC)
Implemented suggestion by dblakie in review for r250704. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-lto')
-rw-r--r--tools/llvm-lto/llvm-lto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-lto/llvm-lto.cpp b/tools/llvm-lto/llvm-lto.cpp
index 29d613f8cd2..b35384a0b35 100644
--- a/tools/llvm-lto/llvm-lto.cpp
+++ b/tools/llvm-lto/llvm-lto.cpp
@@ -208,7 +208,7 @@ static int createCombinedFunctionIndex(StringRef Command) {
<< ".thinlto.bc': " << EC.message() << "\n";
return 1;
}
- WriteFunctionSummaryToFile(&CombinedIndex, OS);
+ WriteFunctionSummaryToFile(CombinedIndex, OS);
OS.close();
return 0;
}