[llvm] r334723 - [ORC] Assert that the query argument to VSO::lookup must be non-null.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 14 08:32:59 PDT 2018
Author: lhames
Date: Thu Jun 14 08:32:59 2018
New Revision: 334723
URL: http://llvm.org/viewvc/llvm-project?rev=334723&view=rev
Log:
[ORC] Assert that the query argument to VSO::lookup must be non-null.
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=334723&r1=334722&r2=334723&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Thu Jun 14 08:32:59 2018
@@ -679,6 +679,8 @@ SymbolNameSet VSO::lookupFlagsImpl(Symbo
SymbolNameSet VSO::lookup(std::shared_ptr<AsynchronousSymbolQuery> Q,
SymbolNameSet Names) {
+ assert(Q && "Query can not be null");
+
std::vector<std::unique_ptr<MaterializationUnit>> MUs;
SymbolNameSet Unresolved = std::move(Names);
More information about the llvm-commits
mailing list