diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index 995e1e570340..25c8cb4f63b3 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -726,9 +726,6 @@ const PassInfo *PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) const { const PassInfo *&PI = AnalysisPassInfos[AID]; if (!PI) PI = PassRegistry::getPassRegistry()->getPassInfo(AID); - else - assert(PI == PassRegistry::getPassRegistry()->getPassInfo(AID) && - "The pass info pointer changed for an analysis ID!"); return PI; }