Revert "[clang] Change builtin object size when subobject is invalid"
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 20 Jan 2021 18:56:21 +0000 (10:56 -0800)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 20 Jan 2021 19:03:34 +0000 (11:03 -0800)
commitb270fd59f0a86fe737853abc43e76b9d29a67eea
tree0484bb1a1d22fbeee20aa7ac1ea9664d2365a2e4
parent69e0bc77a5d74a5f0e57ad3e7a22ce4fba210b85
Revert "[clang] Change builtin object size when subobject is invalid"

This reverts commit 275f30df8ad6de75e1f29e4b33eaeb67686caf0d.

As noted on the code review (https://reviews.llvm.org/D92892), this
change causes us to reject valid code in a few cases. Reverting so we
have more time to figure out what the right fix{es are, is} here.
clang/lib/AST/ExprConstant.cpp
clang/test/CodeGen/object-size.c