Skip to content

Commit d0a3664

Browse files
committed
[NFC] Taking clang-format suggestions
1 parent 5bfc060 commit d0a3664

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

clang/lib/CodeGen/CodeGenAction.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,9 @@ bool BackendConsumer::LinkInModules(llvm::Module *M, bool ShouldLinkFiles) {
271271
Err = Linker::linkModules(
272272
*M, std::move(Clone), LM.LinkFlags,
273273
[](llvm::Module &M, const llvm::StringSet<> &GVS) {
274-
internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
275-
return !GV.hasName() ||
276-
(GVS.count(GV.getName()) == 0);
277-
});
274+
internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
275+
return !GV.hasName() || (GVS.count(GV.getName()) == 0);
276+
});
278277
});
279278
} else
280279
Err = Linker::linkModules(*M, std::move(Clone), LM.LinkFlags);
@@ -288,10 +287,9 @@ bool BackendConsumer::LinkInModules(llvm::Module *M, bool ShouldLinkFiles) {
288287
Err = Linker::linkModules(
289288
*M, std::move(LM.Module), LM.LinkFlags,
290289
[](llvm::Module &M, const llvm::StringSet<> &GVS) {
291-
internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
292-
return !GV.hasName() ||
293-
(GVS.count(GV.getName()) == 0);
294-
});
290+
internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
291+
return !GV.hasName() || (GVS.count(GV.getName()) == 0);
292+
});
295293
});
296294
} else
297295
Err = Linker::linkModules(*M, std::move(LM.Module), LM.LinkFlags);

0 commit comments

Comments
 (0)