Revert r290149: Add the alloc_size attribute to clang.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 20 Dec 2016 08:28:19 +0000 (08:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 20 Dec 2016 08:28:19 +0000 (08:28 +0000)
commitd7738fe6ad9739e750127080a22294df39307429
tree9698fe0b95d43a9d6f1566fdd999cc759f2d79f5
parent881989cb69c405ca92ddabccea547d91491a2d14
Revert r290149: Add the alloc_size attribute to clang.

This commit fails MSan when running test/CodeGen/object-size.c in
a confusing way. After some discussion with George, it isn't really
clear what is going on here. We can make the MSan failure go away by
testing for the invalid bit, but *why* things are invalid isn't clear.
And yet, other code in the surrounding area is doing precisely this and
testing for invalid.

George is going to take a closer look at this to better understand the
nature of the failure and recommit it, for now backing it out to clean
up MSan builds.

llvm-svn: 290169
16 files changed:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/CodeGenModule.h
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/alloc-size.c [deleted file]
clang/test/CodeGenCXX/alloc-size.cpp [deleted file]
clang/test/CodeGenCXX/block-in-ctor-dtor.cpp
clang/test/CodeGenCXX/global-init.cpp
clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
clang/test/Sema/alloc-size.c [deleted file]
clang/test/SemaCXX/constant-expression-cxx11.cpp