[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 22:38:01 PST 2004
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.153 -> 1.154
---
Log message:
Adjust to the changed StructType interface. In particular, getElementTypes() is gone.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.153 llvm/lib/AsmParser/llvmAsmParser.y:1.154
--- llvm/lib/AsmParser/llvmAsmParser.y:1.153 Sun Feb 8 22:13:34 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y Sun Feb 8 22:37:27 2004
@@ -1085,9 +1085,9 @@
// Check to ensure that constants are compatible with the type initializer!
for (unsigned i = 0, e = $3->size(); i != e; ++i)
- if ((*$3)[i]->getType() != STy->getElementTypes()[i])
+ if ((*$3)[i]->getType() != STy->getElementType(i))
ThrowException("Expected type '" +
- STy->getElementTypes()[i]->getDescription() +
+ STy->getElementType(i)->getDescription() +
"' for element #" + utostr(i) +
" of structure initializer!");
More information about the llvm-commits
mailing list