Handle expressions with non-literal types like ignored expressions if we are supposed...
authorNick Lewycky <nicholas@mxc.ca>
Mon, 1 May 2017 02:03:23 +0000 (02:03 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 1 May 2017 02:03:23 +0000 (02:03 +0000)
commit499968f8a57cfe8bd44ac7370949809d77172391
tree30315885802e1d5e3503cea22fb86ffb3fbc3a20
parentfea2d0b8bf28a12ad54b8061fa72f996abcbe12a
Handle expressions with non-literal types like ignored expressions if we are supposed to continue evaluating them.

Also fix a crash casting a derived nullptr to a virtual base.

llvm-svn: 301785
clang/lib/AST/ExprConstant.cpp
clang/test/Sema/integer-overflow.c
clang/test/SemaCXX/constant-expression-cxx11.cpp