DebugInfo: Gut DIObjCProperty and DIImportedEntity
[oota-llvm.git] / lib / IR / DebugInfo.cpp
index 2c3d00b2597a41acf6d1c07ad906ce314652f5d4..fe74ec51a0dfd297be2d429108c4bc3937a37806 100644 (file)
@@ -163,7 +163,7 @@ void DebugInfoFinder::processModule(const Module &M) {
       for (auto *RT : CU->getRetainedTypes())
         processType(RT);
       for (DIImportedEntity Import : CU->getImportedEntities()) {
-        DIDescriptor Entity = Import.getEntity().resolve(TypeIdentifierMap);
+        auto *Entity = Import->getEntity().resolve(TypeIdentifierMap);
         if (auto *T = dyn_cast<MDType>(Entity))
           processType(T);
         else if (auto *SP = dyn_cast<MDSubprogram>(Entity))