diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index 086866d8..d0563387 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -172,7 +172,7 @@ namespace cling { HeaderSearchOptions::Entry &E = Opts.UserEntries[i]; if (!E.IsFramework && E.Group == clang::frontend::System && E.IgnoreSysRoot && oldResInc.str() == E.Path) { - E.Path = newResInc.data(); + E.Path = newResInc.c_str(); foundOldResInc = true; } } diff --git a/lib/Interpreter/DynamicLibraryManager.cpp b/lib/Interpreter/DynamicLibraryManager.cpp index 2460c2b6..ce254b25 100644 --- a/lib/Interpreter/DynamicLibraryManager.cpp +++ b/lib/Interpreter/DynamicLibraryManager.cpp @@ -172,7 +172,7 @@ namespace cling { std::string errMsg; #else const void* dyLibHandle - = dlopen(FoundDyLib.data(), RTLD_LAZY|RTLD_GLOBAL); + = dlopen(FoundDyLib.c_str(), RTLD_LAZY|RTLD_GLOBAL); std::string errMsg; if (const char* DyLibError = dlerror()) { errMsg = DyLibError;