Fixing a build error
authorAndrew Kaylor <andrew.kaylor@intel.com>
Fri, 3 Apr 2015 19:55:30 +0000 (19:55 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Fri, 3 Apr 2015 19:55:30 +0000 (19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234045 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/WinEHPrepare.cpp

index cc225a500922e8a36ac6b9548f35ccda8ae48dc2..2601d7a98be913e546311cc6c3293ba138f6d632 100644 (file)
@@ -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<BasicBlock>(MapEntry.first) || MapEntry.second == nullptr)