[IR] Print the label operands of a catchpad like an invoke
[oota-llvm.git] / lib / IR / LLVMContext.cpp
index af7609f250fadcf1c2ea193e31d27861a67c5ff4..77fd3e1c19845ae867c9604c2bf68154b3d2b31b 100644 (file)
@@ -110,6 +110,12 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
   assert(MakeImplicitID == MD_make_implicit &&
          "make.implicit kind id drifted");
   (void)MakeImplicitID;
+
+  // Create the 'unpredictable' metadata kind.
+  unsigned UnpredictableID = getMDKindID("unpredictable");
+  assert(UnpredictableID == MD_unpredictable &&
+         "unpredictable kind id drifted");
+  (void)UnpredictableID;
 }
 LLVMContext::~LLVMContext() { delete pImpl; }