[all-commits] [llvm/llvm-project] 827ba6: [Sema] Validate calls to GetExprRange.
mordante via All-commits
all-commits at lists.llvm.org
Sun Aug 16 09:36:36 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 827ba67e383313b05e9b10c8215e501530d6c9e3
https://github.com/llvm/llvm-project/commit/827ba67e383313b05e9b10c8215e501530d6c9e3
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2020-08-16 (Sun, 16 Aug 2020)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/SemaCXX/conditional-expr.cpp
Log Message:
-----------
[Sema] Validate calls to GetExprRange.
When a conditional expression has a throw expression it called
GetExprRange with a void expression, which caused an assertion failure.
This approach was suggested by Richard Smith.
Fixes PR46484: Clang crash in clang/lib/Sema/SemaChecking.cpp:10028
Differential Revision: https://reviews.llvm.org/D85601
More information about the All-commits
mailing list