Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d19b15

Browse files
Fix arm build broken by D74361 by dropping align from filecheck pattern
1 parent 31b7f0e commit 1d19b15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
22

3-
// CHECK: @tentative_attr_first = global i32 undef, align 4
3+
// CHECK: @tentative_attr_first = global i32 undef
44
int tentative_attr_first __attribute__((loader_uninitialized));
55
int tentative_attr_first;
66

7-
// CHECK: @tentative_attr_second = global i32 undef, align 4
7+
// CHECK: @tentative_attr_second = global i32 undef
88
int tentative_attr_second;
99
int tentative_attr_second __attribute__((loader_uninitialized));
1010

11-
// CHECK: @array = global [16 x float] undef, align 16
11+
// CHECK: @array = global [16 x float] undef
1212
float array[16] __attribute__((loader_uninitialized));
1313

1414
typedef struct
@@ -17,8 +17,8 @@ typedef struct
1717
float y;
1818
} s;
1919

20-
// CHECK: @i = global %struct.s undef, align 4
20+
// CHECK: @i = global %struct.s undef
2121
s i __attribute__((loader_uninitialized));
2222

23-
// CHECK: @private_extern_ok = hidden global i32 undef, align 4
23+
// CHECK: @private_extern_ok = hidden global i32 undef
2424
__private_extern__ int private_extern_ok __attribute__((loader_uninitialized));

clang/test/CodeGenCXX/attr-loader-uninitialized.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class trivial
2121
// CHECK: @ut = global %class.trivial undef
2222
trivial ut [[clang::loader_uninitialized]];
2323

24-
// CHECK: @arr = global [32 x double] undef, align 16
24+
// CHECK: @arr = global [32 x double] undef
2525
double arr[32] __attribute__((loader_uninitialized));
2626

2727
// Defining as arr2[] [[clang..]] raises the error: attribute cannot be applied to types
28-
// CHECK: @arr2 = global [4 x double] undef, align 16
28+
// CHECK: @arr2 = global [4 x double] undef
2929
double arr2 [[clang::loader_uninitialized]] [4];

0 commit comments

Comments
 (0)