From b398c94c821edd3e8699026dc00501062eafd5b2 Mon Sep 17 00:00:00 2001 From: Lukas Zaoral Date: Thu, 10 Sep 2020 17:12:28 +0200 Subject: llvm11: Make conversions from StringRef to std::string explicit The same applies to SmallString. See: llvm/llvm-project@777180a#diff-497ba4c0c527a125d382b51a34f32542 --- lib/Core/ExternalDispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Core/ExternalDispatcher.cpp') diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index 7ba8df53..baa5327a 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -198,7 +198,7 @@ bool ExternalDispatcherImpl::executeCall(Function *f, Instruction *i, std::move(dispatchModuleUniq)); // MCJIT takes ownership // Force code generation uint64_t fnAddr = - executionEngine->getFunctionAddress(dispatcher->getName()); + executionEngine->getFunctionAddress(dispatcher->getName().str()); executionEngine->finalizeObject(); assert(fnAddr && "failed to get function address"); (void)fnAddr; @@ -255,7 +255,7 @@ bool ExternalDispatcherImpl::runProtectedCall(Function *f, uint64_t *args) { Function *ExternalDispatcherImpl::createDispatcher(Function *target, Instruction *inst, Module *module) { - if (!resolveSymbol(target->getName())) + if (!resolveSymbol(target->getName().str())) return 0; #if LLVM_VERSION_CODE >= LLVM_VERSION(8, 0) -- cgit 1.4.1