[PATCH] D14654: Use a different block id for block of metadata kind records

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 14 16:03:50 PST 2015


joker.eph added inline comments.

================
Comment at: lib/Bitcode/Reader/BitcodeReader.cpp:409
@@ -408,1 +408,3 @@
+  std::error_code parseMetadataKinds();
+  std::error_code parseMetadataKindRecord(SmallVector<uint64_t, 64> &Record);
   std::error_code parseMetadataAttachment(Function &F);
----------------
Usually function parameters are `SmallVectorImpl`

================
Comment at: lib/Bitcode/Reader/BitcodeReader.cpp:2409
@@ +2408,3 @@
+    default: // Default behavior: ignore.
+      break;
+    case bitc::METADATA_KIND: {
----------------
What kind of record is allowed here that we want to ignore?


http://reviews.llvm.org/D14654





More information about the llvm-commits mailing list