diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-09 01:37:14 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-09 01:37:14 +0000 |
commit | bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6 (patch) | |
tree | ae2d6dd60808b11fc419bfc9a3ea373ffc6e2543 /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 31a5ab9e3bfbf5a3a28a35d281cdacb98814786b (diff) | |
download | bcm5719-llvm-bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6.tar.gz bcm5719-llvm-bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6.zip |
FunctionIndex is not optional for renameModuleForThinLTO(), make it a reference (NFC)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 262976
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 89f3f9d4f48..6589f56511b 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -436,7 +436,7 @@ public: // First we need to promote to global scope and rename any local values that // are potentially exported to other modules. - if (renameModuleForThinLTO(M, Index)) { + if (renameModuleForThinLTO(M, *Index)) { errs() << "Error renaming module\n"; return false; } |