[llvm] 3496d6e - [Bitcode] Make attribute test more robust (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 10:01:38 PDT 2020


Author: Nikita Popov
Date: 2020-04-30T19:01:27+02:00
New Revision: 3496d6e4bea9cb99cb382939b7e79a50a3b863a5

URL: https://github.com/llvm/llvm-project/commit/3496d6e4bea9cb99cb382939b7e79a50a3b863a5
DIFF: https://github.com/llvm/llvm-project/commit/3496d6e4bea9cb99cb382939b7e79a50a3b863a5.diff

LOG: [Bitcode] Make attribute test more robust (NFC)

The ID of the { nobuiltin } attribute set increases every time
a new test is added to this file. Store it in a variable instead.

Added: 
    

Modified: 
    llvm/test/Bitcode/attributes.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll
index e152a6c17dce..d38eaee485ab 100644
--- a/llvm/test/Bitcode/attributes.ll
+++ b/llvm/test/Bitcode/attributes.ll
@@ -204,7 +204,7 @@ define void @f34()
 ; CHECK: define void @f34()
 {
   call void @nobuiltin() nobuiltin
-; CHECK: call void @nobuiltin() #40
+; CHECK: call void @nobuiltin() #[[NOBUILTIN:[0-9]+]]
         ret void;
 }
 
@@ -420,4 +420,4 @@ define void @f64(i32* preallocated(i32) %a)
 ; CHECK: attributes #37 = { nofree }
 ; CHECK: attributes #38 = { nosync }
 ; CHECK: attributes #39 = { sanitize_memtag }
-; CHECK: attributes #40 = { nobuiltin }
+; CHECK: attributes #[[NOBUILTIN]] = { nobuiltin }


        


More information about the llvm-commits mailing list