From bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 9 Mar 2016 01:37:14 +0000 Subject: FunctionIndex is not optional for renameModuleForThinLTO(), make it a reference (NFC) From: Mehdi Amini llvm-svn: 262976 --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp') 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; } -- cgit v1.2.3