forked from OSchip/llvm-project
Handle void in XCoreTargetLowering::isLegalAddressingMode. Triggers in
test/CodeGen/Generic. llvm-svn: 76162
This commit is contained in:
parent
2391d265ed
commit
efa2215e30
|
@ -1125,6 +1125,11 @@ static inline bool isImmUs4(int64_t val)
|
|||
bool
|
||||
XCoreTargetLowering::isLegalAddressingMode(const AddrMode &AM,
|
||||
const Type *Ty) const {
|
||||
// Be conservative with void
|
||||
// FIXME: Can we be more aggressive?
|
||||
if (Ty->getTypeID() == Type::VoidTyID)
|
||||
return false;
|
||||
|
||||
const TargetData *TD = TM.getTargetData();
|
||||
unsigned Size = TD->getTypeAllocSize(Ty);
|
||||
if (AM.BaseGV) {
|
||||
|
|
Loading…
Reference in New Issue