Skip to content

Commit b4330a9

Browse files
committed
Remove some unnecessary checks from the test
1 parent bc2fc8d commit b4330a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/test/CIR/CodeGen/global-init.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ struct NeedsCtor {
1111

1212
NeedsCtor needsCtor;
1313

14-
// CIR-BEFORE-LPP: cir.func private @_ZN9NeedsCtorC1Ev(!cir.ptr<!rec_NeedsCtor>)
1514
// CIR-BEFORE-LPP: cir.global external @needsCtor = ctor : !rec_NeedsCtor {
1615
// CIR-BEFORE-LPP: %[[THIS:.*]] = cir.get_global @needsCtor : !cir.ptr<!rec_NeedsCtor>
1716
// CIR-BEFORE-LPP: cir.call @_ZN9NeedsCtorC1Ev(%[[THIS]]) : (!cir.ptr<!rec_NeedsCtor>) -> ()
18-
// CIR-BEFORE-LPP: }
1917

2018
// CIR: cir.global external @needsCtor = #cir.zero : !rec_NeedsCtor
2119
// CIR: cir.func internal private @__cxx_global_var_init() {
2220
// CIR: %0 = cir.get_global @needsCtor : !cir.ptr<!rec_NeedsCtor>
2321
// CIR: cir.call @_ZN9NeedsCtorC1Ev(%0) : (!cir.ptr<!rec_NeedsCtor>) -> ()
24-
// CIR: cir.return
25-
// CIR: }
22+
2623
// CIR: cir.func private @_GLOBAL__sub_I_[[FILENAME:.*]]() {
2724
// CIR: cir.call @__cxx_global_var_init() : () -> ()
2825
// CIR: cir.return

0 commit comments

Comments
 (0)