aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-04 01:31:24 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-04 01:31:24 +0000
commitaf0dea13479bbd1eacfb1404ac09c729174c32fe (patch)
tree993847ade847808ef85e08533460c7b149dda80f /llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
parenta24dc7fa8c82651be2d74a8f5e09d8fa06e4f3ca (diff)
downloadllvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.zip
llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.tar.gz
llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.tar.bz2
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
llvm-svn: 185606
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp b/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
index 2cc045b..7073a52 100644
--- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
+++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
@@ -28,7 +28,7 @@ public:
virtual ~TestObjectCache() {
// Free any buffers we've allocated.
- SmallVector<MemoryBuffer *, 2>::iterator it, end;
+ SmallVectorImpl<MemoryBuffer *>::iterator it, end;
end = AllocatedBuffers.end();
for (it = AllocatedBuffers.begin(); it != end; ++it) {
delete *it;