diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp index c5a38aec102..cf091743f9d 100644 --- a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp +++ b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp @@ -1,4 +1,5 @@ -//===-- ThreadSafeModule.cpp - Thread safe Module, Context, and Utilities h-===// +//===-- ThreadSafeModule.cpp - Thread safe Module, Context, and Utilities +//h-===// // // The LLVM Compiler Infrastructure // @@ -21,7 +22,7 @@ ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, assert(TSM && "Can not clone null module"); if (!ShouldCloneDef) - ShouldCloneDef = [](const GlobalValue&) { return true; }; + ShouldCloneDef = [](const GlobalValue &) { return true; }; auto Lock = TSM.getContextLock(); @@ -30,8 +31,7 @@ ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, { std::vector<GlobalValue *> ClonedDefsInSrc; ValueToValueMapTy VMap; - auto Tmp = CloneModule(*TSM.getModule(), VMap, - [&](const GlobalValue *GV) { + auto Tmp = CloneModule(*TSM.getModule(), VMap, [&](const GlobalValue *GV) { if (ShouldCloneDef(*GV)) { ClonedDefsInSrc.push_back(const_cast<GlobalValue *>(GV)); return true; |