summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/function-attributes.c
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-03-24 09:11:57 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-03-24 09:11:57 +0000
commit45bbe0117bee932c967de6d44984ea7dab8f36b5 (patch)
treef138defe1ddbfab8edbad2265af359e6339f6289 /clang/test/CodeGen/function-attributes.c
parent0387364c4c00277be875e1544d99492b0ea7820b (diff)
downloadbcm5719-llvm-45bbe0117bee932c967de6d44984ea7dab8f36b5.tar.gz
bcm5719-llvm-45bbe0117bee932c967de6d44984ea7dab8f36b5.zip
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. llvm-svn: 298695
Diffstat (limited to 'clang/test/CodeGen/function-attributes.c')
-rw-r--r--clang/test/CodeGen/function-attributes.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/test/CodeGen/function-attributes.c b/clang/test/CodeGen/function-attributes.c
index 49f47bf74d4..2139f6fe654 100644
--- a/clang/test/CodeGen/function-attributes.c
+++ b/clang/test/CodeGen/function-attributes.c
@@ -108,20 +108,6 @@ void f20(void) {
_setjmp(0);
}
-// Bogus declarations that will end up with bad types when detecting builtins,
-// but that we will still process when considering whether to add attributes.
-struct __jmp_buf_tag;
-extern int __sigsetjmp(struct __jmp_buf_tag *__env, int __savemask);
-
-// CHECK-LABEL: define void @f21()
-// CHECK: {
-// CHECK: call i32 @__sigsetjmp(%{{.*}}* null, i32 0)
-// CHECK: [[RT_CALL]]
-// CHECK: ret void
-void f21(void) {
- __sigsetjmp(0, 0);
-}
-
// CHECK: attributes [[NUW]] = { nounwind optsize{{.*}} }
// CHECK: attributes [[AI]] = { alwaysinline nounwind optsize{{.*}} }
// CHECK: attributes [[NUW_OS_RN]] = { nounwind optsize readnone{{.*}} }
OpenPOWER on IntegriCloud