mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 09:21:25 +00:00
Add 'nonnull', a new parameter and return attribute which indicates that the pointer is not null. Instcombine will elide comparisons between these and null. Patch by Luqman Aden!
llvm-svn: 209185
This commit is contained in:
1 parent
57cccec446
commit
d52b1528c0
14 files changed
+44
-4
No files matched your search
@@ -569,6 +569,8 @@ static Attribute::AttrKind GetAttrFromCode(uint64_t Code) {
|
||||
return Attribute::NoInline;
|
||||
case bitc::ATTR_KIND_NON_LAZY_BIND:
|
||||
return Attribute::NonLazyBind;
|
||||
case bitc::ATTR_KIND_NON_NULL:
|
||||
return Attribute::NonNull;
|
||||
case bitc::ATTR_KIND_NO_RED_ZONE:
|
||||
return Attribute::NoRedZone;
|
||||
case bitc::ATTR_KIND_NO_RETURN:
|
||||
|
||||
Reference in new issue
Block a user