summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/WinEHPrepare.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-04-03 19:55:30 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-04-03 19:55:30 +0000
commita12eb15f1d488fef2235d91523b54e17b8135fdc (patch)
tree9c8e721ac24bdf316927e29dafa488fc4c67d439 /llvm/lib/CodeGen/WinEHPrepare.cpp
parent077b2bf0c9df74a8cd919dcd9dbc6711e2d2e94e (diff)
downloadbcm5719-llvm-a12eb15f1d488fef2235d91523b54e17b8135fdc.tar.gz
bcm5719-llvm-a12eb15f1d488fef2235d91523b54e17b8135fdc.zip
Fixing a build error
llvm-svn: 234045
Diffstat (limited to 'llvm/lib/CodeGen/WinEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index cc225a50092..2601d7a98be 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/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<BasicBlock>(MapEntry.first) || MapEntry.second == nullptr)
OpenPOWER on IntegriCloud