]> granicus.if.org Git - clang/commit
Added an assertion to constant evaluation enty points that prohibits dependent expres...
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 17 May 2019 17:16:53 +0000 (17:16 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 17 May 2019 17:16:53 +0000 (17:16 +0000)
commit913ffa6ba34794946fdeb3bdb469d8fbe6bc2088
treec4384e8cfe267b1a2fecada9ecb8c5efb025a8cb
parentce3ecc9eafe661f832db05d94d6d96f966b63f46
Added an assertion to constant evaluation enty points that prohibits dependent expressions

Summary:
Constant evaluator does not work on value-dependent or type-dependent
expressions.

Also fixed bugs uncovered by these assertions.

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61522

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaOverload.cpp