[llvm] r234045 - Fixing a build error
Andrew Kaylor
andrew.kaylor at intel.com
Fri Apr 3 12:55:31 PDT 2015
Author: akaylor
Date: Fri Apr 3 14:55:30 2015
New Revision: 234045
URL: http://llvm.org/viewvc/llvm-project?rev=234045&view=rev
Log:
Fixing a build error
Modified:
llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=234045&r1=234044&r2=234045&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Fri Apr 3 14:55:30 2015
@@ -875,7 +875,7 @@ bool WinEHPrepare::outlineHandler(Action
// 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)
More information about the llvm-commits
mailing list