[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.
This commit is contained in:
Nikita Popov 2020-04-30 18:49:01 +02:00
parent a3a27a7aee
commit 3496d6e4be
1 changed files with 2 additions and 2 deletions

View File

@ -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 }