aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/LazyCallGraphTest.cpp
diff options
context:
space:
mode:
authorJOE1994 <joseph942010@gmail.com>2024-09-13 18:57:02 -0400
committerJOE1994 <joseph942010@gmail.com>2024-09-13 19:01:08 -0400
commit52b48a70d3752f9db36ddcfd26d0451c009b19fc (patch)
tree2ef5743e24730796f2085c9f71802b6dc943f66d /llvm/unittests/Analysis/LazyCallGraphTest.cpp
parent1e3536ef3141d6429f3616af624b81b6d6ab2959 (diff)
downloadllvm-52b48a70d3752f9db36ddcfd26d0451c009b19fc.zip
llvm-52b48a70d3752f9db36ddcfd26d0451c009b19fc.tar.gz
llvm-52b48a70d3752f9db36ddcfd26d0451c009b19fc.tar.bz2
[llvm][unittests] Strip unneeded use of raw_string_ostream::str() (NFC)
Avoid excess layer of indirection.
Diffstat (limited to 'llvm/unittests/Analysis/LazyCallGraphTest.cpp')
-rw-r--r--llvm/unittests/Analysis/LazyCallGraphTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Analysis/LazyCallGraphTest.cpp b/llvm/unittests/Analysis/LazyCallGraphTest.cpp
index 6cfc01e..6ca233a 100644
--- a/llvm/unittests/Analysis/LazyCallGraphTest.cpp
+++ b/llvm/unittests/Analysis/LazyCallGraphTest.cpp
@@ -34,7 +34,7 @@ std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
// A failure here means that the test itself is buggy.
if (!M)
- report_fatal_error(OS.str().c_str());
+ report_fatal_error(ErrMsg.c_str());
return M;
}