Skip to content

Commit

Permalink
[Bitcode] Make attribute test more robust (NFC)
Browse files Browse the repository at this point in the history
The ID of the { nobuiltin } attribute set increases every time
a new test is added to this file. Store it in a variable instead.
  • Loading branch information
nikic committed Apr 30, 2020
1 parent a3a27a7 commit 3496d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/test/Bitcode/attributes.ll
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 }

0 comments on commit 3496d6e

Please sign in to comment.