diff options
author | Zachary Turner <zturner@google.com> | 2014-11-21 01:19:09 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-11-21 01:19:09 +0000 |
commit | 8325a5c6f8561243411ce8436e30c85e1c97ceab (patch) | |
tree | 6bd6d57c48eeb88b0c4cf2e2459489efa7659b02 | |
parent | ebd1ef82ada90499e39cb6fd4a4b8d07125f5cfc (diff) | |
download | bcm5719-llvm-8325a5c6f8561243411ce8436e30c85e1c97ceab.tar.gz bcm5719-llvm-8325a5c6f8561243411ce8436e30c85e1c97ceab.zip |
Add curly braces to workaround an MSVC bug.
MSVC can't parse this pattern for range-based for loops.
llvm-svn: 222491
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 05600155a8c..9698dbd77fd 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -1178,8 +1178,10 @@ void Verifier::visitBasicBlock(BasicBlock &BB) { } // Check that all instructions have their parent pointers set up correctly. - for (auto &I: BB) + for (auto &I : BB) + { Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!"); + } } void Verifier::visitTerminatorInst(TerminatorInst &I) { |