The commit broke a couple of bots: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/12347 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/7310 llvm-svn: 341757
17 lines
675 B
C
17 lines
675 B
C
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: [[Vi:%.+]] = alloca %struct.__block_byref_i, align 8
|
|
// CHECK: call i32 (...) @rhs()
|
|
// CHECK: [[V7:%.+]] = getelementptr inbounds %struct.__block_byref_i, %struct.__block_byref_i* [[Vi]], i32 0, i32 1
|
|
// CHECK: load %struct.__block_byref_i*, %struct.__block_byref_i** [[V7]]
|
|
// CHECK: call i32 (...) @rhs()
|
|
// CHECK: [[V11:%.+]] = getelementptr inbounds %struct.__block_byref_i, %struct.__block_byref_i* [[Vi]], i32 0, i32 1
|
|
// CHECK: load %struct.__block_byref_i*, %struct.__block_byref_i** [[V11]]
|
|
|
|
int rhs();
|
|
|
|
void foo() {
|
|
__block int i;
|
|
i = rhs();
|
|
i += rhs();
|
|
}
|