[PATCH] D156511: [clang][Interp] Diagnose more unkonwn DeclRefExprs

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 28 08:08:20 PDT 2023


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LG aside from a nit.



================
Comment at: clang/lib/AST/Interp/Interp.cpp:558-561
+      if (VD->getType()->isIntegralOrEnumerationType())
+        S.FFDiag(E, diag::note_constexpr_ltor_non_const_int, 1) << VD;
+      else
+        S.FFDiag(E, diag::note_constexpr_ltor_non_constexpr, 1) << VD;
----------------
Plus reformatting.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156511



More information about the cfe-commits mailing list