Skip to content

Commit 0a1d270

Browse files
committed
ClangImporter: Remove redundant temporary copy of CompilerInvocation
1 parent 511a26b commit 0a1d270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,8 @@ std::string ClangImporter::getBridgingHeaderContents(StringRef headerPath,
14691469
bool
14701470
ClangImporter::emitBridgingPCH(StringRef headerPath,
14711471
StringRef outputPCHPath) {
1472-
auto invocation = std::make_shared<clang::CompilerInvocation>
1473-
(clang::CompilerInvocation(*Impl.Invocation));
1472+
auto invocation =
1473+
std::make_shared<clang::CompilerInvocation>(*Impl.Invocation);
14741474
invocation->getFrontendOpts().DisableFree = false;
14751475
invocation->getFrontendOpts().Inputs.clear();
14761476
invocation->getFrontendOpts().Inputs.push_back(

0 commit comments

Comments
 (0)