forked from OSchip/llvm-project
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:
parent
a3485301d4
commit
2eb80a99a2
|
@ -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)
|
||||
|
|
|
@ -328,7 +328,7 @@ bool PerfJITEventListener::InitDebuggingDir() {
|
|||
return false;
|
||||
}
|
||||
|
||||
JitPath = UniqueDebugDir.str();
|
||||
JitPath = std::string(UniqueDebugDir.str());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue