Make StringRef's std::string conversion operator explicit

The build is currenly broken when perf or ffi are enabled for llvm

Just like in https://reviews.llvm.org/rG777180a32b61070a10dd330b4f038bf24e916af1
This commit is contained in:
Sylvestre Ledru 2020-02-01 15:36:51 +01:00
parent a3485301d4
commit 2eb80a99a2
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ GenericValue Interpreter::callExternalFunction(Function *F,
RawFunc RawFn;
if (RF == RawFunctions->end()) {
RawFn = (RawFunc)(intptr_t)
sys::DynamicLibrary::SearchForAddressOfSymbol(F->getName());
sys::DynamicLibrary::SearchForAddressOfSymbol(std::string(F->getName()));
if (!RawFn)
RawFn = (RawFunc)(intptr_t)getPointerToGlobalIfAvailable(F);
if (RawFn != 0)

View File

@ -328,7 +328,7 @@ bool PerfJITEventListener::InitDebuggingDir() {
return false;
}
JitPath = UniqueDebugDir.str();
JitPath = std::string(UniqueDebugDir.str());
return true;
}