[WinEH] Use operand bundles to describe call sites
[oota-llvm.git] / lib / IR / LLVMContext.cpp
index af998c861357121ee5732cdcc3395dd714bda180..8848bcb7147770ea141869fedae0b96dcaa14bcd 100644 (file)
@@ -132,6 +132,11 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
   assert(DeoptEntry->second == LLVMContext::OB_deopt &&
          "deopt operand bundle id drifted!");
   (void)DeoptEntry;
+
+  auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet");
+  assert(FuncletEntry->second == LLVMContext::OB_funclet &&
+         "funclet operand bundle id drifted!");
+  (void)FuncletEntry;
 }
 LLVMContext::~LLVMContext() { delete pImpl; }