Skip to content

Commit

Permalink
[CIR] Reland failing tests (llvm#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardosolopes committed Aug 31, 2024
1 parent c798182 commit 8a8ba9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CIR/CodeGen/CIRGenCleanup.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,12 @@ EHScopeStack::stabilize(iterator ir) const {

/// The exceptions personality for a function.
struct EHPersonality {
const char *PersonalityFn;
const char *PersonalityFn = nullptr;

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

static const EHPersonality &get(CIRGenModule &CGM,
const clang::FunctionDecl *FD);
Expand Down
21 changes: 10 additions & 11 deletions clang/test/CIR/CodeGen/global-new.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// RUN: true
// 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
// DISABLED: FileCheck %s -check-prefix=CIR_AFTER --input-file=%t.cir
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm %s -o %t.ll
// DISABLED: FileCheck %s -check-prefix=LLVM --input-file=%t.ll
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -fexceptions -fcxx-exceptions %s -o %t.eh.cir
// DISABLED: FileCheck %s -check-prefix=CIR_EH --input-file=%t.eh.cir
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir-flat -fexceptions -fcxx-exceptions %s -o %t.eh.flat.cir
// DISABLED: FileCheck %s -check-prefix=CIR_FLAT_EH --input-file=%t.eh.flat.cir
// DISABLED: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm -fexceptions -fcxx-exceptions %s -o %t.eh.ll
// DISABLED: FileCheck %s -check-prefix=LLVM_EH --input-file=%t.eh.ll
// 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
// RUN: FileCheck %s -check-prefix=CIR_AFTER --input-file=%t.cir
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm %s -o %t.ll
// RUN: FileCheck %s -check-prefix=LLVM --input-file=%t.ll
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir -fexceptions -fcxx-exceptions %s -o %t.eh.cir
// RUN: FileCheck %s -check-prefix=CIR_EH --input-file=%t.eh.cir
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-cir-flat -fexceptions -fcxx-exceptions %s -o %t.eh.flat.cir
// RUN: FileCheck %s -check-prefix=CIR_FLAT_EH --input-file=%t.eh.flat.cir
// RUN: %clang_cc1 -std=c++20 -triple aarch64-none-linux-android21 -fclangir -emit-llvm -fexceptions -fcxx-exceptions %s -o %t.eh.ll
// RUN: FileCheck %s -check-prefix=LLVM_EH --input-file=%t.eh.ll

struct e { e(int); };
e *g = new e(0);
Expand Down

0 comments on commit 8a8ba9e

Please sign in to comment.