mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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:
parent
df930c38b3
commit
6d6b3cc89b
@ -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) +
|
||||
|
Loading…
Reference in New Issue
Block a user