diff options
author | Lukas Zaoral <lzaoral@redhat.com> | 2020-09-10 17:12:28 +0200 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2020-12-04 20:35:47 +0000 |
commit | b398c94c821edd3e8699026dc00501062eafd5b2 (patch) | |
tree | 862f321cb7e784e28a861f23701e443deeb5ebfe /lib/Module/InstructionInfoTable.cpp | |
parent | 4ca5a80836de48036e47f611a6ea610a6fb2b54b (diff) | |
download | klee-b398c94c821edd3e8699026dc00501062eafd5b2.tar.gz |
llvm11: Make conversions from StringRef to std::string explicit
The same applies to SmallString. See: llvm/llvm-project@777180a#diff-497ba4c0c527a125d382b51a34f32542
Diffstat (limited to 'lib/Module/InstructionInfoTable.cpp')
-rw-r--r-- | lib/Module/InstructionInfoTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Module/InstructionInfoTable.cpp b/lib/Module/InstructionInfoTable.cpp index fde5ff19..05a1f7b9 100644 --- a/lib/Module/InstructionInfoTable.cpp +++ b/lib/Module/InstructionInfoTable.cpp @@ -120,7 +120,7 @@ public: if (dsub != nullptr) { auto path = dsub->getFilename(); return std::make_unique<FunctionInfo>(FunctionInfo( - 0, getInternedString(path), dsub->getLine(), asmLine)); + 0, getInternedString(path.str()), dsub->getLine(), asmLine)); } // Fallback: Mark as unknown @@ -151,7 +151,7 @@ public: } } return std::make_unique<InstructionInfo>(InstructionInfo( - 0, getInternedString(full_path), line, column, asmLine)); + 0, getInternedString(full_path.str()), line, column, asmLine)); } if (f != nullptr) |