From bd2c26b992b954e280ce84d4de3617d328706ed2 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Fri, 3 Apr 2015 19:55:30 +0000 Subject: [PATCH] Fixing a build error git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234045 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index cc225a50092..2601d7a98be 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -875,7 +875,7 @@ bool WinEHPrepare::outlineHandler(ActionHandler *Action, Function *SrcFn, // save the association of the blocks in LPadTargetBlocks. The // return instructions which are created from these branches will be // replaced after all landing pads have been outlined. - for (auto &MapEntry : VMap) { + for (const auto &MapEntry : VMap) { // VMap maps all values and blocks that were just cloned, but dead // blocks which were pruned will map to nullptr. if (!isa(MapEntry.first) || MapEntry.second == nullptr) -- 2.34.1