]> granicus.if.org Git - clang/commit
Don't assert if evaluation of an expression that we're syntactically required
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 4 Dec 2015 03:00:44 +0000 (03:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 4 Dec 2015 03:00:44 +0000 (03:00 +0000)
commitb659b7b860e586f38438b12eeaa417d41028fe63
tree015b7dc8a348b4b43816ba6cb9fb971be10d7115
parentbe0a1835a2575a830095a983f493f58d792bec2b
Don't assert if evaluation of an expression that we're syntactically required
to treat as an ICE results in undefined behavior. Instead, return the "natural"
result of the operation (signed wraparound / inf / nan).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression.cpp