Skip to content

Commit 8a8ba9e

Browse files
[CIR] Reland failing tests (#811)
1 parent c798182 commit 8a8ba9e

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

clang/lib/CIR/CodeGen/CIRGenCleanup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,12 +621,12 @@ EHScopeStack::stabilize(iterator ir) const {
621621

622622
/// The exceptions personality for a function.
623623
struct EHPersonality {
624-
const char *PersonalityFn;
624+
const char *PersonalityFn = nullptr;
625625

626626
// If this is non-null, this personality requires a non-standard
627627
// function for rethrowing an exception after a catchall cleanup.
628628
// This function must have prototype void(void*).
629-
const char *CatchallRethrowFn;
629+
const char *CatchallRethrowFn = nullptr;
630630

631631
static const EHPersonality &get(CIRGenModule &CGM,
632632
const clang::FunctionDecl *FD);

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

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
// RUN: true
2-
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -mmlir --mlir-print-ir-before=cir-lowering-prepare %s -o %t.cir 2>&1 | FileCheck %s -check-prefix=CIR_BEFORE
3-
// DISABLED: FileCheck %s -check-prefix=CIR_AFTER --input-file=%t.cir
4-
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm %s -o %t.ll
5-
// DISABLED: FileCheck %s -check-prefix=LLVM --input-file=%t.ll
6-
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -fexceptions -fcxx-exceptions %s -o %t.eh.cir
7-
// DISABLED: FileCheck %s -check-prefix=CIR_EH --input-file=%t.eh.cir
8-
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir-flat -fexceptions -fcxx-exceptions %s -o %t.eh.flat.cir
9-
// DISABLED: FileCheck %s -check-prefix=CIR_FLAT_EH --input-file=%t.eh.flat.cir
10-
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm -fexceptions -fcxx-exceptions %s -o %t.eh.ll
11-
// DISABLED: FileCheck %s -check-prefix=LLVM_EH --input-file=%t.eh.ll
1+
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -mmlir --mlir-print-ir-before=cir-lowering-prepare %s -o %t.cir 2>&1 | FileCheck %s -check-prefix=CIR_BEFORE
2+
// RUN: FileCheck %s -check-prefix=CIR_AFTER --input-file=%t.cir
3+
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm %s -o %t.ll
4+
// RUN: FileCheck %s -check-prefix=LLVM --input-file=%t.ll
5+
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -fexceptions -fcxx-exceptions %s -o %t.eh.cir
6+
// RUN: FileCheck %s -check-prefix=CIR_EH --input-file=%t.eh.cir
7+
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir-flat -fexceptions -fcxx-exceptions %s -o %t.eh.flat.cir
8+
// RUN: FileCheck %s -check-prefix=CIR_FLAT_EH --input-file=%t.eh.flat.cir
9+
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm -fexceptions -fcxx-exceptions %s -o %t.eh.ll
10+
// RUN: FileCheck %s -check-prefix=LLVM_EH --input-file=%t.eh.ll
1211

1312
struct e { e(int); };
1413
e *g = new e(0);

0 commit comments

Comments
 (0)