[clang] [CIR] [NFC] Update CHECK pattern to use regex for new def of RV (PR #142218)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 30 14:36:45 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clangir
Author: None (Andres-Salamanca)
<details>
<summary>Changes</summary>
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
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]]
``````````
</details>
https://github.com/llvm/llvm-project/pull/142218
More information about the cfe-commits
mailing list