Skip to content

Commit 94b1832

Browse files
committed
Replace auto with explicit types
1 parent 32089db commit 94b1832

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/Interpreter/Interpreter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,10 @@ llvm::Error Interpreter::LoadDynamicLibrary(const char *name) {
777777
if (!EE)
778778
return EE.takeError();
779779

780-
if (auto DLSG = llvm::orc::EPCDynamicLibrarySearchGenerator::Load(
781-
EE->getExecutionSession(), name))
780+
if (llvm::Expected<
781+
std::unique_ptr<llvm::orc::EPCDynamicLibrarySearchGenerator>>
782+
DLSG = llvm::orc::EPCDynamicLibrarySearchGenerator::Load(
783+
EE->getExecutionSession(), name))
782784
// FIXME: Eventually we should put each library in its own JITDylib and
783785
// turn off process symbols by default.
784786
EE->getProcessSymbolsJITDylib()->addGenerator(std::move(*DLSG));

0 commit comments

Comments
 (0)