]> granicus.if.org Git - clang/commit
Revert r298491 and r298494 which changed Clang's handling of 'nonnull'
authorChandler Carruth <chandlerc@gmail.com>
Fri, 24 Mar 2017 09:11:57 +0000 (09:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 24 Mar 2017 09:11:57 +0000 (09:11 +0000)
commitbcd9120fe29f55e3849e7ef2295f91471c246da9
treebde703bae046e41faabba1137f121d269b11bd9c
parent830dfeb50d63b95c23d03a46325d7dc3480f3db7
Revert r298491 and r298494 which changed Clang's handling of 'nonnull'
attributes.

These patches don't work because we can't currently access the parameter
information in a reliable way when building attributes. I thought this
would be relatively straightforward to fix, but it seems not to be the
case. Fixing this will requrie a substantial re-plumbing of machinery to
allow attributes to be handled in this location, and several other fixes
to the attribute machinery should probably be made at the same time. All
of this will make the patch .... substantially more complicated.

Reverting for now as there are active miscompiles caused by the current
version.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298695 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/Basic/Builtins.def
lib/AST/ASTContext.cpp
lib/CodeGen/CGCall.cpp
test/CodeGen/function-attributes.c
test/CodeGen/nonnull.c