[PATCH] D124995: [clang] Add static_cast to fix Bazel build.

Adrian Kuegel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 5 00:58:32 PDT 2022


akuegel created this revision.
Herald added a project: All.
akuegel requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124995

Files:
  clang/lib/ExtractAPI/ExtractAPIConsumer.cpp


Index: clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
===================================================================
--- clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
+++ clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
@@ -927,7 +927,8 @@
         HeaderContents += "\"\n";
       else
         HeaderContents += ">\n";
-      KnownInputFiles.emplace_back(*RelativeName, IsQuoted);
+      KnownInputFiles.emplace_back(static_cast<SmallString<32>>(*RelativeName),
+                                   IsQuoted);
     } else {
       HeaderContents += " \"";
       HeaderContents += FilePath;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124995.427235.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220505/67dba4ee/attachment.bin>


More information about the cfe-commits mailing list