<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">-  for (auto &I: BB)</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">+  for (auto &I : BB)</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">+  {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">     Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">+  }</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Please match the surrounding brace style.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">-- Sean Silva</font></div><div><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 5:19 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: zturner<br>
Date: Thu Nov 20 19:19:09 2014<br>
New Revision: 222491<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=222491&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=222491&view=rev</a><br>
Log:<br>
Add curly braces to workaround an MSVC bug.<br>
<br>
MSVC can't parse this pattern for range-based for loops.<br>
<br>
Modified:<br>
    llvm/trunk/lib/IR/Verifier.cpp<br>
<br>
Modified: llvm/trunk/lib/IR/Verifier.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=222491&r1=222490&r2=222491&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=222491&r1=222490&r2=222491&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/IR/Verifier.cpp (original)<br>
+++ llvm/trunk/lib/IR/Verifier.cpp Thu Nov 20 19:19:09 2014<br>
@@ -1178,8 +1178,10 @@ void Verifier::visitBasicBlock(BasicBloc<br>
   }<br>
<br>
   // Check that all instructions have their parent pointers set up correctly.<br>
-  for (auto &I: BB)<br>
+  for (auto &I : BB)<br>
+  {<br>
     Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");<br>
+  }<br>
 }<br>
<br>
 void Verifier::visitTerminatorInst(TerminatorInst &I) {<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>