diff options
Diffstat (limited to 'llvm/tools/bugpoint/bugpoint.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/bugpoint.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/bugpoint.cpp b/llvm/tools/bugpoint/bugpoint.cpp index b4bc455db12..ba5234bdc89 100644 --- a/llvm/tools/bugpoint/bugpoint.cpp +++ b/llvm/tools/bugpoint/bugpoint.cpp @@ -90,8 +90,7 @@ namespace { AddToDriver(BugDriver &_D) : D(_D) {} virtual void add(Pass *P) { - const void *ID = P->getPassID(); - const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(ID); + const PassInfo *PI = P->getPassInfo(); D.addPasses(&PI, &PI + 1); } }; |

