[llvm] r327475 - [ORC] Silence a compiler error.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 22:23:56 PDT 2018


Author: lhames
Date: Tue Mar 13 22:23:56 2018
New Revision: 327475

URL: http://llvm.org/viewvc/llvm-project?rev=327475&view=rev
Log:
[ORC] Silence a compiler error.

This should fix the builder error at
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/19006

Modified:
    llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp

Modified: llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp?rev=327475&r1=327474&r2=327475&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Tue Mar 13 22:23:56 2018
@@ -362,7 +362,7 @@ Expected<SymbolMap> lookup(const std::ve
       PromisedResult.set_value(std::move(*Result));
     else {
       ResolutionError = Result.takeError();
-      PromisedResult.set_value({});
+      PromisedResult.set_value(SymbolMap());
     }
   };
   auto OnReady = [&](Error Err) {




More information about the llvm-commits mailing list