Add nonnull in CodeGen for __attribute__((nonnull))
authorHal Finkel <hfinkel@anl.gov>
Fri, 11 Jul 2014 17:35:21 +0000 (17:35 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 11 Jul 2014 17:35:21 +0000 (17:35 +0000)
commit82504f03ce98c30da60a12d84c71384e44734f15
tree784f293a5b04692676d2d61904f34c26632e68d0
parent0a51abc100bf47fbd009e827274175e8d549e7fd
Add nonnull in CodeGen for __attribute__((nonnull))

We now have an LLVM-level nonnull attribute that can be applied to function
parameters, and we emit it for reference types (as of r209723), but did not
emit it when an __attribute__((nonnull)) was provided. Now we will.

llvm-svn: 212835
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/nonnull.c [new file with mode: 0644]