[WinEH] Allow CatchHigh to be equal to TryHigh
[oota-llvm.git] / tools / opt / BreakpointPrinter.cpp
index 8031d56a82650a685bf2d2e413fc7ca874b24f69..8f390a10e3b2f0b6ab854f154208aec117490394 100644 (file)
@@ -36,9 +36,9 @@ struct BreakpointPrinter : public ModulePass {
         N = N + NS->getName().str() + "::";
       }
     } else if (DIType TY = dyn_cast<MDType>(Context)) {
-      if (!TY.getName().empty()) {
-        getContextName(TY.getContext().resolve(TypeIdentifierMap), N);
-        N = N + TY.getName().str() + "::";
+      if (!TY->getName().empty()) {
+        getContextName(TY->getScope().resolve(TypeIdentifierMap), N);
+        N = N + TY->getName().str() + "::";
       }
     }
   }