[clang] [clang][AST] Outline constant-interpreter shift diagnostics (PR #202633)
David Zbarsky via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 5 18:47:56 PDT 2026
================
@@ -147,25 +148,33 @@ bool CheckDynamicCast(InterpState &S, CodePtr OpPC);
enum class ShiftDir { Left, Right };
+enum class ShiftFailure {
+ NegativeCount,
+ TooLarge,
+ NegativeLeftOperand,
+ DiscardsBits,
+};
+
+LLVM_ATTRIBUTE_NOINLINE bool DiagnoseShiftFailure(InterpState &S, CodePtr OpPC,
----------------
dzbarsky wrote:
thanks, applied!
https://github.com/llvm/llvm-project/pull/202633
More information about the cfe-commits
mailing list