-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Clang] fix range calculation for conditionals with throw expressions #112081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
67c4161
8366e2c
336810f
248a56a
3a56d10
c3c5b8f
9c2a745
6e2b0aa
661abfd
cd3d083
eb5f2e2
0cb124d
76be3d8
646675b
f19a1a1
01dc877
ad1ed80
79adbbe
3d1ed95
b8af5b8
ef19b65
331a5ec
39adc48
fe739b6
e0f056c
93ccc0d
ddb0fcb
93e2369
4b19638
edb0a54
d223061
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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}; | ||
|
||
|
|
||
| return IntRange::forValueOfType(C, GetExprType(E)); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.