summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 16:39:58 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 16:39:58 +0000
commit317c139f23d7139b20ec0a48062720b4b0a265a4 (patch)
tree47196cb1646b038637398ce207540b8eaa88d33b /llvm/lib/IR/LLVMContextImpl.cpp
parent16bec8e667cf21a69622a4a440f5b196f3c8ff3b (diff)
downloadbcm5719-llvm-317c139f23d7139b20ec0a48062720b4b0a265a4.tar.gz
bcm5719-llvm-317c139f23d7139b20ec0a48062720b4b0a265a4.zip
Reapply r215966, r215965, r215964, r215963, r215960, r215959, r215958, and r215957
This reverts commit r215981, which reverted the above commits because MSVC std::equal asserts on nullptr iterators, and thes commits introduced an `ArrayRef::equals()` on empty ArrayRefs. ArrayRef was changed not to use std::equal in r215986. llvm-svn: 215987
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index 4c2791f0a8d..6513965ae7a 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -75,7 +75,7 @@ LLVMContextImpl::~LLVMContextImpl() {
// Free the constants. This is important to do here to ensure that they are
// freed before the LeakDetector is torn down.
std::for_each(ExprConstants.map_begin(), ExprConstants.map_end(),
- DropReferences());
+ DropFirst());
std::for_each(ArrayConstants.map_begin(), ArrayConstants.map_end(),
DropFirst());
std::for_each(StructConstants.map_begin(), StructConstants.map_end(),
OpenPOWER on IntegriCloud