[PATCH] D89770: Don't use C++17 features

Ray Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 20 00:23:11 PDT 2020


oneraynyday updated this revision to Diff 299282.
oneraynyday added a comment.

C++17 features cause buildkite to fail.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89770/new/

https://reviews.llvm.org/D89770

Files:
  clang-tools-extra/clang-cast/Matcher.h


Index: clang-tools-extra/clang-cast/Matcher.h
===================================================================
--- clang-tools-extra/clang-cast/Matcher.h
+++ clang-tools-extra/clang-cast/Matcher.h
@@ -169,7 +169,9 @@
 // TODO: Is this okay to do?
 Matcher::~Matcher() {
   if (PublishSummary) {
-    for (auto const &[CXXCastKind, Freq] : Statistics) {
+    for (const auto &Pair : Statistics) {
+      const auto &CXXCastKind = Pair.first;
+      const auto &Freq = Pair.second;
       if (!Freq)
         continue;
       llvm::errs() << "The type " << cppCastToString(CXXCastKind)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89770.299282.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201020/4cab18f1/attachment.bin>


More information about the cfe-commits mailing list