[all-commits] [llvm/llvm-project] e64e69: [clang] fix crash on template instantiation of inv...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Tue Aug 3 14:16:23 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e64e6924b8aef8d48117beb6e87162109ac2512c
https://github.com/llvm/llvm-project/commit/e64e6924b8aef8d48117beb6e87162109ac2512c
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2021-08-03 (Tue, 03 Aug 2021)
Changed paths:
M clang/lib/Sema/SemaTemplateInstantiate.cpp
M clang/test/CXX/expr/expr.prim/expr.prim.req/type-requirement.cpp
M clang/test/CXX/temp/temp.constr/temp.constr.normal/p1.cpp
Log Message:
-----------
[clang] fix crash on template instantiation of invalid requires expressions
See PR48656.
The implementation of the template instantiation of requires expressions
was incorrectly trying to get the expression from an 'ExprRequirement'
before checking if it was an error state.
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Reviewed By: rsmith
Differential Revision: https://reviews.llvm.org/D107399
More information about the All-commits
mailing list