diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-04-27 05:56:55 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-04-27 05:56:55 +0000 |
commit | b4f3637cec2f4b914528bc6b27d00b8317f7a995 (patch) | |
tree | 572329429bcb082b4f16cb1db40e1d967476f1de /clang/test/CodeGenObjCXX/lambda-expressions.mm | |
parent | 1f3e2b296602ca23c276e41439868b41c8de41ad (diff) | |
download | bcm5719-llvm-b4f3637cec2f4b914528bc6b27d00b8317f7a995.tar.gz bcm5719-llvm-b4f3637cec2f4b914528bc6b27d00b8317f7a995.zip |
Revert "[CodeGen] Avoid destructing a callee-destructued struct type in a"
This reverts commit r331016, which broke a windows bot.
http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/11727
llvm-svn: 331019
Diffstat (limited to 'clang/test/CodeGenObjCXX/lambda-expressions.mm')
-rw-r--r-- | clang/test/CodeGenObjCXX/lambda-expressions.mm | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/clang/test/CodeGenObjCXX/lambda-expressions.mm b/clang/test/CodeGenObjCXX/lambda-expressions.mm index f60655c61b1..c8247e2e0a2 100644 --- a/clang/test/CodeGenObjCXX/lambda-expressions.mm +++ b/clang/test/CodeGenObjCXX/lambda-expressions.mm @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -fblocks -fobjc-arc -fobjc-runtime-has-weak -DWEAK_SUPPORTED | FileCheck -check-prefix=ARC %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -fblocks -fobjc-arc | FileCheck -check-prefix=ARC %s // RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -fblocks | FileCheck -check-prefix=MRC %s typedef int (^fp)(); @@ -138,31 +138,5 @@ namespace BlockInLambda { } @end -// Check that the delegating invoke function doesn't destruct the Weak object -// that is passed. - -// ARC-LABEL: define internal void @"_ZZN14LambdaDelegate4testEvEN3$_58__invokeENS_4WeakE"( -// ARC: call void @"_ZZN14LambdaDelegate4testEvENK3$_5clENS_4WeakE"( -// ARC-NEXT: ret void - -// ARC-LABEL: define internal void @"_ZZN14LambdaDelegate4testEvENK3$_5clENS_4WeakE"( -// ARC: call void @_ZN14LambdaDelegate4WeakD1Ev( - -#ifdef WEAK_SUPPORTED - -namespace LambdaDelegate { - -struct Weak { - __weak id x; -}; - -void test() { - void (*p)(Weak) = [](Weak a) { }; -} - -}; - -#endif - // ARC: attributes [[NUW]] = { noinline nounwind{{.*}} } // MRC: attributes [[NUW]] = { noinline nounwind{{.*}} } |