[clang] [CIR][NFC] Fix try-catch-tmp.cpp test (PR #181402)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 11:07:43 PST 2026
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/181402
This test was failing due to its CI having been run before another change was committed that added attributes to return values. This removes unnecessary checks to make the test pass again.
>From a59d035d0fea270ed27d895fd92b182056ee368e Mon Sep 17 00:00:00 2001
From: Andy Kaylor <akaylor at nvidia.com>
Date: Fri, 13 Feb 2026 11:05:32 -0800
Subject: [PATCH] [CIR][NFC] Fix try-catch-tmp.cpp test
This test was failing due to its CI having been run before another change
was committed that added attributes to return values. This removes unnecessary
checks to make the test pass again.
---
clang/test/CIR/CodeGen/try-catch-tmp.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/clang/test/CIR/CodeGen/try-catch-tmp.cpp b/clang/test/CIR/CodeGen/try-catch-tmp.cpp
index 63a20efb2a9ef..d43100c433e88 100644
--- a/clang/test/CIR/CodeGen/try-catch-tmp.cpp
+++ b/clang/test/CIR/CodeGen/try-catch-tmp.cpp
@@ -15,7 +15,7 @@ void call_function_inside_try_catch_all() {
// CIR: cir.func {{.*}} @_Z34call_function_inside_try_catch_allv() personality(@__gxx_personality_v0)
// CIR: cir.scope {
// CIR: cir.try {
-// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv() : () -> !s32i
+// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv()
// CIR: cir.yield
// CIR: } catch all {
// CIR: %[[CATCH_PARAM:.*]] = cir.catch_param : !cir.ptr<!void>
@@ -58,7 +58,7 @@ void call_function_inside_try_catch_with_exception_type() {
// CIR: cir.scope {
// CIR: %[[EXCEPTION_ADDR:.*]] = cir.alloca !s32i, !cir.ptr<!s32i>, ["e"]
// CIR: cir.try {
-// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv() : () -> !s32i
+// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv()
// CIR: cir.yield
// CIR: } catch [type #cir.global_view<@_ZTIi> : !cir.ptr<!u8i>] {
// CIR: %[[CATCH_PARAM:.*]] = cir.catch_param : !cir.ptr<!s32i>
@@ -118,7 +118,7 @@ void call_function_inside_try_catch_with_complex_exception_type() {
// CIR: cir.scope {
// CIR: %[[EXCEPTION_ADDR:.*]] = cir.alloca !cir.complex<!s32i>, !cir.ptr<!cir.complex<!s32i>>, ["e"]
// CIR: cir.try {
-// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv() : () -> !s32i
+// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv()
// CIR: cir.yield
// CIR: } catch [type #cir.global_view<@_ZTICi> : !cir.ptr<!u8i>] {
// CIR: %[[CATCH_PARAM:.*]] = cir.catch_param : !cir.ptr<!cir.complex<!s32i>>
@@ -184,7 +184,7 @@ void call_function_inside_try_catch_with_array_exception_type() {
// CIR: cir.scope {
// CIR: %[[E_ADDR:.*]] = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["e"]
// CIR: cir.try {
-// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv() : () -> !s32i
+// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv()
// CIR: cir.yield
// CIR: } catch [type #cir.global_view<@_ZTIPi> : !cir.ptr<!u8i>] {
// CIR: %[[CATCH_PARAM:.*]] = cir.catch_param : !cir.ptr<!s32i>
@@ -243,7 +243,7 @@ void call_function_inside_try_catch_with_exception_type_and_catch_all() {
// CIR: cir.scope {
// CIR: %[[EXCEPTION_ADDR:.*]] = cir.alloca !s32i, !cir.ptr<!s32i>, ["e"]
// CIR: cir.try {
-// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv() : () -> !s32i
+// CIR: %[[CALL:.*]] = cir.call @_Z8divisionv()
// CIR: cir.yield
// CIR: } catch [type #cir.global_view<@_ZTIi> : !cir.ptr<!u8i>] {
// CIR: %[[CATCH_PARAM:.*]] = cir.catch_param : !cir.ptr<!s32i>
More information about the cfe-commits
mailing list