[PATCH] D148206: [clang] Do not crash after suggesting typo correction to constexpr if condition

Zixuan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 22 02:47:55 PDT 2023


zixuan-wu added inline comments.


================
Comment at: clang/test/SemaCXX/invalid-if-constexpr.cpp:7
+}
+void a() { if constexpr (__adl_swap<>) {}} // expected-error{{use of undeclared identifier '__adl_swap'; did you mean '__sync_swap'?}} \
+                                           // expected-note {{'__sync_swap' declared here}}
----------------
Hi, why  `did you mean '__sync_swap'` is not reported in riscv target? So it's failed in check-all.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148206



More information about the cfe-commits mailing list