mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-18 03:59:15 +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());
|
ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size());
|
||||||
|
|
||||||
// Verify all elements are correct type!
|
// 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())
|
if (Elts[i]->getType() != Elts[0]->getType())
|
||||||
return Error(FirstEltLoc,
|
return Error(FirstEltLoc,
|
||||||
"array element #" + utostr(i) +
|
"array element #" + utostr(i) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user