]> granicus.if.org Git - clang/commit
Don't let EvaluationModes dictate whether an invalid base is OK
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 10 Feb 2017 22:52:29 +0000 (22:52 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 10 Feb 2017 22:52:29 +0000 (22:52 +0000)
commitfbe18a269deb1a11c16eb2d2419b3c9ef9be8d3b
tree101c7ab0c616b1ff0ca0a8c351ac55b10ce7cd8c
parent8fc981f3af745890158e2b6009eede292605b098
Don't let EvaluationModes dictate whether an invalid base is OK

What we want to actually control this behavior is something more local
than an EvalutationMode. Please see the linked revision for more
discussion on why/etc.

This fixes PR31843.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294800 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/CodeGen/object-size.c
test/Sema/builtin-object-size.c