From a6e5bb5300c9900345cb5fd2cf3febf8943a0781 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Mon, 29 Sep 2014 15:45:07 +0200 Subject: [PATCH] Do not deserialize decls, while iterating to unload. --- lib/Interpreter/TransactionUnloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/TransactionUnloader.cpp b/lib/Interpreter/TransactionUnloader.cpp index c369695e..7fb658b8 100644 --- a/lib/Interpreter/TransactionUnloader.cpp +++ b/lib/Interpreter/TransactionUnloader.cpp @@ -835,8 +835,8 @@ namespace clang { typedef llvm::SmallVector Decls; Decls declsToErase; // Removing from single-linked list invalidates the iterators. - for (DeclContext::decl_iterator I = DC->decls_begin(); - I != DC->decls_end(); ++I) { + for (DeclContext::decl_iterator I = DC->noload_decls_begin(); + I != DC->noload_decls_end(); ++I) { declsToErase.push_back(*I); }