Skip to content

Commit

Permalink
update throw.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bruteforceboy committed Feb 6, 2025
1 parent da36bd9 commit 8fffc61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/test/CIR/CodeGen/throw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ double d(int a, int b) {
return (a/b);
}

struct S {
S() {}
};

// CIR: cir.if
// CIR-NEXT: %[[ADDR:.*]] = cir.alloc.exception 8
// CIR-NEXT: %[[STR:.*]] = cir.get_global @".str" : !cir.ptr<!cir.array<!s8i x 28>>
Expand All @@ -27,6 +23,10 @@ struct S {
// LLVM: call void @__cxa_throw(ptr %[[ADDR]], ptr @_ZTIPKc, ptr null)
// LLVM: unreachable

struct S {
S() {}
};

void refoo1() {
int r = 1;
try {
Expand Down

0 comments on commit 8fffc61

Please sign in to comment.