commit | 1f74590e9d1b9cf0f1f81a156efea73f76546e05 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Fri Aug 06 00:23:35 2010 +0000 |
committer | Owen Anderson <resistor@mac.com> | Fri Aug 06 00:23:35 2010 +0000 |
tree | f3b2fa6368e824b1dd3ad04e8c1c4f070b4bb4a0 | |
parent | f6d6df40060eef9af19b084b2fb7a8fd627415ae [diff] [blame] |
Revert r110396 to fix buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110410 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index bbdc728..6913fd0 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp
@@ -100,8 +100,7 @@ } static const PassInfo *getPI(Pass *P) { - const void *ID = P->getPassID(); - const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(ID); + const PassInfo *PI = P->getPassInfo(); delete P; return PI; }