mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 04:51:23 +00:00
[LLVM] Accept noundef attribute in function definitions/calls
The `noundef` attribute indicates an argument or return value which may never have an undef value representation. This patch allows LLVM to parse the attribute. Differential Revision: https://reviews.llvm.org/D83412
This commit is contained in:
1 parent
89f1ad88b3
commit
ff7900d5de
10 files changed
+26
No files matched your search
@@ -1530,6 +1530,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
|
||||
return Attribute::SanitizeMemTag;
|
||||
case bitc::ATTR_KIND_PREALLOCATED:
|
||||
return Attribute::Preallocated;
|
||||
case bitc::ATTR_KIND_NOUNDEF:
|
||||
return Attribute::NoUndef;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user