Skip to content

Instantly share code, notes, and snippets.

@dotdash
Created February 12, 2015 19:57
Show Gist options
  • Save dotdash/f0a26c980b7200f7a790 to your computer and use it in GitHub Desktop.
Save dotdash/f0a26c980b7200f7a790 to your computer and use it in GitHub Desktop.
diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp
index fa8d50e..6bf6060 100644
--- a/lib/IR/LegacyPassManager.cpp
+++ b/lib/IR/LegacyPassManager.cpp
@@ -733,9 +733,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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment