projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91f34a
)
Add curly braces to workaround an MSVC bug.
author
Zachary Turner
<zturner@google.com>
Fri, 21 Nov 2014 01:19:09 +0000
(
01:19
+0000)
committer
Zachary Turner
<zturner@google.com>
Fri, 21 Nov 2014 01:19:09 +0000
(
01:19
+0000)
MSVC can't parse this pattern for range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222491
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Verifier.cpp
b/lib/IR/Verifier.cpp
index 05600155a8c390aaebb528de305d77e063b07701..9698dbd77fdfa567a17792d2be42efa0b120f294 100644
(file)
--- a/
lib/IR/Verifier.cpp
+++ b/
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) {