We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792c65c commit ff48353Copy full SHA for ff48353
clang/lib/Interpreter/Interpreter.cpp
@@ -581,12 +581,7 @@ Interpreter::Parse(llvm::StringRef Code) {
581
if (!TuOrErr)
582
return TuOrErr.takeError();
583
584
- PTUs.emplace_back(PartialTranslationUnit());
585
- PartialTranslationUnit &LastPTU = PTUs.back();
586
- LastPTU.TUPart = *TuOrErr;
587
-
588
- if (std::unique_ptr<llvm::Module> M = Act->GenModule())
589
- LastPTU.TheModule = std::move(M);
+ PartialTranslationUnit &LastPTU = IncrParser->RegisterPTU(*TuOrErr);
590
591
return LastPTU;
592
}
0 commit comments