Skip to content

[CIR] [NFC] Update CHECK pattern to use regex for new def of RV #142218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

Andres-Salamanca
Copy link
Contributor

Found this minor nit: it was using a previously defined RV.

@llvmbot llvmbot added clang Clang issues not falling into any other category ClangIR Anything related to the ClangIR project labels May 30, 2025
@llvmbot
Copy link
Member

llvmbot commented May 30, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clangir

Author: None (Andres-Salamanca)

Changes

Found this minor nit: it was using a previously defined RV.


Full diff: https://github.com/llvm/llvm-project/pull/142218.diff

1 Files Affected:

  • (modified) clang/test/CIR/Lowering/func-simple.cpp (+1-1)
diff --git a/clang/test/CIR/Lowering/func-simple.cpp b/clang/test/CIR/Lowering/func-simple.cpp
index 3d6a837daf6e5..9f50d7ae2dbb5 100644
--- a/clang/test/CIR/Lowering/func-simple.cpp
+++ b/clang/test/CIR/Lowering/func-simple.cpp
@@ -41,7 +41,7 @@ int scopes() {
 
 long longfunc() { return 42l; }
 // CHECK: define{{.*}} i64 @_Z8longfuncv() {
-// CHECK:   %[[RV]] = alloca i64, i64 1, align 8
+// CHECK:   %[[RV:.*]] = alloca i64, i64 1, align 8
 // CHECK:   store i64 42, ptr %[[RV]], align 4
 // CHECK:   %[[R:.*]] = load i64, ptr %[[RV]], align 4
 // CHECK:   ret i64 %[[R]]

Copy link
Member

@AmrDeveloper AmrDeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Andres-Salamanca Andres-Salamanca merged commit 3dffd71 into llvm:main Jun 2, 2025
14 checks passed
sallto pushed a commit to sallto/llvm-project that referenced this pull request Jun 3, 2025
…#142218)

Found this minor nit: it was using a previously defined RV.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category ClangIR Anything related to the ClangIR project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants