Change range-based for-loops to be -Wrange-loop-analysis clean.
[oota-llvm.git] / lib / CodeGen / WinEHPrepare.cpp
index e5e6f250d3ea41a242e98187f426b6ca6091807b..afe26ff8224a9b87487a34e209e51f9ba20cfb65 100644 (file)
@@ -909,7 +909,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 (const 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)