Remove getContainedType from getClassInfoInit (#4146)

This commit is contained in:
Nicholas Wilson 2022-09-13 17:39:08 +08:00 committed by GitHub
parent 011fb4a479
commit 6badf8ee68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -426,7 +426,7 @@ LLConstant *IrClass::getClassInfoInit() {
}
// build the initializer
LLType *initType = getClassInfoSymbol()->getType()->getContainedType(0);
LLType *initType = getClassInfoSymbol()->getValueType();
constTypeInfo = b.get_constant(isaStruct(initType));
return constTypeInfo;