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:
df930c3
)
Fix a really horrible typo, which caused undefined behavior.
author
Chris Lattner
<sabre@nondot.org>
Fri, 2 Jan 2009 08:49:06 +0000
(08:49 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 2 Jan 2009 08:49:06 +0000
(08:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61566
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index 45c68143bd50060d034a2aa5a0db30bcbe0281ae..5582bfa7f136eabeaff22a8a3a9b687228775eab 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-1592,7
+1592,7
@@
bool LLParser::ParseValID(ValID &ID) {
ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size());
// Verify all elements are correct type!
- for (unsigned i =
i, e = Elts.size()
; i != e; ++i) {
+ for (unsigned i =
0, e = Elts.size()
; i != e; ++i) {
if (Elts[i]->getType() != Elts[0]->getType())
return Error(FirstEltLoc,
"array element #" + utostr(i) +