Give embedded metadata its own type instead of relying on EmptyStructTy.
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index d2b4544cb0060c40f3e10b050bf0a36f70798bc1..b4e16c3b46f4fcac5e4d3f70404438b8a3a5ce2e 100644 (file)
@@ -498,6 +498,9 @@ bool BitcodeReader::ParseTypeTable() {
     case bitc::TYPE_CODE_OPAQUE:    // OPAQUE
       ResultTy = 0;
       break;
+    case bitc::TYPE_CODE_METADATA:  // METADATA
+      ResultTy = Type::MetadataTy;
+      break;
     case bitc::TYPE_CODE_INTEGER:   // INTEGER: [width]
       if (Record.size() < 1)
         return Error("Invalid Integer type record");