aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-06 11:23:26 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-06 11:43:19 +0100
commitb9b90bb5426ffc23cf90f133a90d1469d263522c (patch)
tree614727003893d9155fd92548ce5bff13bec98c98 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent78873840ff4112e6fb8e04fa6f7637febe114c96 (diff)
downloadllvm-b9b90bb5426ffc23cf90f133a90d1469d263522c.zip
llvm-b9b90bb5426ffc23cf90f133a90d1469d263522c.tar.gz
llvm-b9b90bb5426ffc23cf90f133a90d1469d263522c.tar.bz2
[clang] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)
As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared.
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
index 1adf0ad..acfda02 100644
--- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
+++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
@@ -264,7 +264,7 @@ public:
std::string Error;
auto Triple = Ctx.getTargetInfo().getTriple();
if (!llvm::TargetRegistry::lookupTarget(Triple.getTriple(), Error))
- llvm::report_fatal_error(Error);
+ llvm::report_fatal_error(llvm::Twine(Error));
// Emit the serialized Clang AST into its own section.
assert(Buffer->IsComplete && "serialization did not complete");