[WebAssembly] Clean up comments and fix a missing #include dependency.
[oota-llvm.git] / lib / Bitcode / Writer / BitcodeWriter.cpp
index e34ce5ac430c0ea36a05b5573ddf39dcc34dd975..a1f87863757bb777b2e516f4e33a3b5292e83dcf 100644 (file)
@@ -178,6 +178,10 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
     return bitc::ATTR_KIND_IN_ALLOCA;
   case Attribute::Cold:
     return bitc::ATTR_KIND_COLD;
+  case Attribute::InaccessibleMemOnly:
+    return bitc::ATTR_KIND_INACCESSIBLEMEM_ONLY;
+  case Attribute::InaccessibleMemOrArgMemOnly:
+    return bitc::ATTR_KIND_INACCESSIBLEMEM_OR_ARGMEMONLY;
   case Attribute::InlineHint:
     return bitc::ATTR_KIND_INLINE_HINT;
   case Attribute::InReg: