[all-commits] [llvm/llvm-project] ca50f0: [clang] fix error detection in consteval calls
Ralender via All-commits
all-commits at lists.llvm.org
Wed Feb 26 12:09:59 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ca50f09db9f86eb5ac7aa0cb53c52637f2b7effa
https://github.com/llvm/llvm-project/commit/ca50f09db9f86eb5ac7aa0cb53c52637f2b7effa
Author: Tyker <tyker1 at outlook.com>
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
M clang/test/SemaCXX/cxx2a-consteval.cpp
Log Message:
-----------
[clang] fix error detection in consteval calls
Summary:
code like:
```
consteval int f() {
int *A = new int(0);
return *A;
}
int i1 = f();
```
currently doesn't generate any error.
Reviewers: rsmith
Reviewed By: rsmith
Differential Revision: https://reviews.llvm.org/D74418
More information about the All-commits
mailing list