Fix a really horrible typo, which caused undefined behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-01-02 08:49:06 +00:00
parent df930c38b3
commit 6d6b3cc89b

View File

@ -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) +