[IR] Introduce a dereferenceable_or_null(N) attribute.
[oota-llvm.git] / lib / Bitcode / Writer / BitcodeWriter.cpp
index 743ffe3cb1fd35cd3be94d3c38575f04e4edc7cb..aa4a6a4c28a1585dd110ad493efa325e79d41838 100644 (file)
@@ -200,6 +200,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
     return bitc::ATTR_KIND_NON_NULL;
   case Attribute::Dereferenceable:
     return bitc::ATTR_KIND_DEREFERENCEABLE;
+  case Attribute::DereferenceableOrNull:
+    return bitc::ATTR_KIND_DEREFERENCEABLE_OR_NULL;
   case Attribute::NoRedZone:
     return bitc::ATTR_KIND_NO_RED_ZONE;
   case Attribute::NoReturn: