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 --- tools/klee/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 7184bd44..874660d7 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -441,7 +441,7 @@ void KleeHandler::setInterpreter(Interpreter *i) { std::string KleeHandler::getOutputFilename(const std::string &filename) { SmallString<128> path = m_outputDirectory; sys::path::append(path,filename); - return path.str(); + return path.c_str(); } std::unique_ptr @@ -673,7 +673,7 @@ std::string KleeHandler::getRunTimeLibraryPath(const char *argv0) { KLEE_DEBUG_WITH_TYPE("klee_runtime", llvm::dbgs() << libDir.c_str() << "\n"); - return libDir.str(); + return libDir.c_str(); } //===----------------------------------------------------------------------===// @@ -938,7 +938,7 @@ void externalsAndGlobalsCheck(const llvm::Module *m) { it = m->alias_begin(), ie = m->alias_end(); it != ie; ++it) { std::map::iterator it2 = - externals.find(it->getName()); + externals.find(it->getName().str()); if (it2!=externals.end()) externals.erase(it2); } -- cgit 1.4.1