[cfe-commits] r164218 - /cfe/trunk/lib/CodeGen/CGVTables.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Sep 19 06:13:53 PDT 2012
Author: d0k
Date: Wed Sep 19 08:13:52 2012
New Revision: 164218
URL: http://llvm.org/viewvc/llvm-project?rev=164218&view=rev
Log:
Update clang for API change.
Modified:
cfe/trunk/lib/CodeGen/CGVTables.cpp
Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.cpp?rev=164218&r1=164217&r2=164218&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTables.cpp Wed Sep 19 08:13:52 2012
@@ -255,7 +255,9 @@
llvm::Function *BaseFn = cast<llvm::Function>(Callee);
// Clone to thunk.
- llvm::Function *NewFn = llvm::CloneFunction(BaseFn);
+ llvm::ValueToValueMapTy VMap;
+ llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap,
+ /*ModuleLevelChanges=*/false);
CGM.getModule().getFunctionList().push_back(NewFn);
Fn->replaceAllUsesWith(NewFn);
NewFn->takeName(Fn);
More information about the cfe-commits
mailing list