about summary refs log tree commit diff homepage
path: root/lib/Core
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2018-05-17 11:45:08 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-05-22 11:08:24 +0100
commitb23e2ca61a5a89b66ce38cf02257aba04dd35186 (patch)
tree4dd1cefa710f0087aa1a94851fb50a0e847a23d0 /lib/Core
parentb737b76ce25ded750fa0d10b10414566c0856810 (diff)
downloadklee-b23e2ca61a5a89b66ce38cf02257aba04dd35186.tar.gz
Removed .c_str() from getSourceLocation calls
Diffstat (limited to 'lib/Core')
-rw-r--r--lib/Core/ExecutorUtil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp
index 63967ae5..a352db33 100644
--- a/lib/Core/ExecutorUtil.cpp
+++ b/lib/Core/ExecutorUtil.cpp
@@ -128,7 +128,7 @@ namespace klee {
         std::string msg("Cannot handle constant ");
         llvm::raw_string_ostream os(msg);
         os << "'" << *c << "' at location "
-           << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
+           << (ki ? ki->getSourceLocation() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
     }
@@ -154,7 +154,7 @@ namespace klee {
       if (op2->getLimitedValue() == 0) {
         std::string msg("Division/modulo by zero during constant folding at location ");
         llvm::raw_string_ostream os(msg);
-        os << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
+        os << (ki ? ki->getSourceLocation() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
       break;
@@ -164,7 +164,7 @@ namespace klee {
       if (op2->getLimitedValue() >= op1->getWidth()) {
         std::string msg("Overshift during constant folding at location ");
         llvm::raw_string_ostream os(msg);
-        os << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
+        os << (ki ? ki->getSourceLocation() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
     }
@@ -175,7 +175,7 @@ namespace klee {
     switch (ce->getOpcode()) {
     default :
       os << "'" << *ce << "' at location "
-         << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
+         << (ki ? ki->getSourceLocation() : "[unknown]");
       klee_error("%s", os.str().c_str());
 
     case Instruction::Trunc: