[clang] 3dffd71 - [CIR] [NFC] Update CHECK pattern to use regex for new def of RV (#142218)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 11:12:18 PDT 2025


Author: Andres-Salamanca
Date: 2025-06-02T13:12:15-05:00
New Revision: 3dffd7117486785ad919ed394fdb1f345634c242

URL: https://github.com/llvm/llvm-project/commit/3dffd7117486785ad919ed394fdb1f345634c242
DIFF: https://github.com/llvm/llvm-project/commit/3dffd7117486785ad919ed394fdb1f345634c242.diff

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

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

Added: 
    

Modified: 
    clang/test/CIR/Lowering/func-simple.cpp

Removed: 
    


################################################################################
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]]


        


More information about the cfe-commits mailing list