}
StructType *sttype = StructType::get(vType);
- ConstantStruct *cstruct = ConstantStruct::get(sttype, vConsts);
+ Constant *cstruct = ConstantStruct::get(sttype, vConsts);
GlobalVariable *gb = new GlobalVariable(cstruct->getType(), true,
GlobalValue::ExternalLinkage,
Values.push_back(Val);
}
- ConstantStruct *Replacement = ConstantStruct::get(getType(), Values);
+ Constant *Replacement = ConstantStruct::get(getType(), Values);
assert(Replacement != this && "I didn't contain From!");
// Everyone using this now uses the replacement...