[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 09:49:58 PDT 2024
================
@@ -9827,6 +9827,9 @@ static IntRange GetExprRange(ASTContext &C, const Expr *E, unsigned MaxWidth,
return IntRange(BitField->getBitWidthValue(C),
BitField->getType()->isUnsignedIntegerOrEnumerationType());
+ if (GetExprType(E)->isVoidType())
+ return IntRange{0, true};
----------------
a-tarasyuk wrote:
@erichkeane @shafik @AaronBallman when you have a moment, could you review these changes? thanks
https://github.com/llvm/llvm-project/pull/112081
More information about the cfe-commits
mailing list