[clang] cc344d2 - [clang] Add static_cast to fix Bazel build.
Adrian Kuegel via cfe-commits
cfe-commits at lists.llvm.org
Thu May 5 01:30:01 PDT 2022
Author: Adrian Kuegel
Date: 2022-05-05T10:29:47+02:00
New Revision: cc344d262a2eaa65f9e380f5b1eeb03a7048fa39
URL: https://github.com/llvm/llvm-project/commit/cc344d262a2eaa65f9e380f5b1eeb03a7048fa39
DIFF: https://github.com/llvm/llvm-project/commit/cc344d262a2eaa65f9e380f5b1eeb03a7048fa39.diff
LOG: [clang] Add static_cast to fix Bazel build.
Differential Revision: https://reviews.llvm.org/D124995
Added:
Modified:
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
Removed:
################################################################################
diff --git a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
index 70c8bac59ce97..a7b0a1ac98a78 100644
--- a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
+++ b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
@@ -927,7 +927,8 @@ bool ExtractAPIAction::PrepareToExecuteAction(CompilerInstance &CI) {
HeaderContents += "\"\n";
else
HeaderContents += ">\n";
- KnownInputFiles.emplace_back(*RelativeName, IsQuoted);
+ KnownInputFiles.emplace_back(static_cast<SmallString<32>>(*RelativeName),
+ IsQuoted);
} else {
HeaderContents += " \"";
HeaderContents += FilePath;
More information about the cfe-commits
mailing list