diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-02 21:49:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-02 21:49:26 +0000 |
commit | 8fc55764139f478087fc0a0d3c02da436e84bf43 (patch) | |
tree | 64d319e39923fa597ac936981ee5c27afd986669 /lib/VMCore/LLVMContext.cpp | |
parent | d9489cbb0cf933da9e2154a5336533d6254a5c30 (diff) |
Revert 80839 for now. It causes test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 0ed21fb754..1803a9a666 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// #include "llvm/LLVMContext.h" -#include "llvm/Metadata.h" #include "llvm/Constants.h" #include "llvm/Instruction.h" #include "llvm/Support/ManagedStatic.h" @@ -49,10 +48,10 @@ bool LLVMContext::RemoveDeadMetadata() { bool Changed = false; while (1) { - for (FoldingSet<MDNode>::iterator - I = pImpl->MDNodeSet.begin(), - E = pImpl->MDNodeSet.end(); I != E; ++I) { - const MDNode *N = &(*I); + for (SmallPtrSet<const MDNode *, 8>::iterator + I = pImpl->MDNodes.begin(), + E = pImpl->MDNodes.end(); I != E; ++I) { + const MDNode *N = cast<MDNode>(*I); if (N->use_empty()) DeadMDNodes.push_back(N); } |