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;


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;
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D124995: [clang] Add... Adrian Kuegel via Phabricator via cfe-commits

Reply via email to