Fix crash in DebugInfoFinder when adding a module with forward declared composite...
[oota-llvm.git] / lib / IR / DebugInfo.cpp
index d289f8079bde9da0104e02b8154e1f36cd546564..ca7a4f4801bddb4985b78f23e2536298be9f2749 100644 (file)
@@ -182,7 +182,7 @@ void DebugInfoFinder::processType(DIType DT) {
         processType(Ref.resolve(TypeIdentifierMap));
       return;
     }
-    for (Metadata *D : DCT->getElements()->operands()) {
+    for (Metadata *D : DCT->getElements()) {
       if (DIType T = dyn_cast<MDType>(D))
         processType(T);
       else if (DISubprogram SP = dyn_cast<MDSubprogram>(D))