projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd1ef8
)
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.
llvm-svn: 222491
llvm/lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Verifier.cpp
b/llvm/lib/IR/Verifier.cpp
index
0560015
..
9698dbd
100644
(file)
--- 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) {