Skip to content

Commit 0b11d01

Browse files
[BitCode] decode nossp fn attr
I missed this in https://reviews.llvm.org/D87956. Reviewed By: void Differential Revision: https://reviews.llvm.org/D90177
1 parent 00928a1 commit 0b11d01

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
15371537
return Attribute::ByRef;
15381538
case bitc::ATTR_KIND_MUSTPROGRESS:
15391539
return Attribute::MustProgress;
1540+
case bitc::ATTR_KIND_NO_STACK_PROTECT:
1541+
return Attribute::NoStackProtect;
15401542
}
15411543
}
15421544

llvm/test/Bitcode/attributes.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@ define void @f68() mustprogress
404404
ret void
405405
}
406406

407+
; CHECK; define void @f69() #42
408+
define void @f69() nossp
409+
{
410+
ret void
411+
}
412+
407413
; CHECK: attributes #0 = { noreturn }
408414
; CHECK: attributes #1 = { nounwind }
409415
; CHECK: attributes #2 = { readnone }
@@ -446,4 +452,5 @@ define void @f68() mustprogress
446452
; CHECK: attributes #39 = { sanitize_memtag }
447453
; CHECK: attributes #40 = { null_pointer_is_valid }
448454
; CHECK: attributes #41 = { mustprogress }
455+
; CHECK: attributes #42 = { nossp }
449456
; CHECK: attributes #[[NOBUILTIN]] = { nobuiltin }

0 commit comments

Comments
 (0)