Adjust to the changed StructType interface. In particular, getElementTypes() is gone.
llvm-svn: 11228
This commit is contained in:
@@ -62,7 +62,7 @@ const Type *llvm::getStructOffsetType(const Type *Ty, unsigned &Offset,
|
||||
uint64_t ThisOffset;
|
||||
const Type *NextType;
|
||||
if (const StructType *STy = dyn_cast<StructType>(Ty)) {
|
||||
if (STy->getElementTypes().empty()) {
|
||||
if (STy->getNumElements()) {
|
||||
Offset = 0;
|
||||
return STy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user