mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Handle Void types in ComputeValueVTs. This doesn't currently occur,
but this change makes the code more general and easier to adapt for new purposes. llvm-svn: 69935
This commit is contained in:
parent
46ab8008a8
commit
313018c1d3
@ -135,6 +135,9 @@ static void ComputeValueVTs(const TargetLowering &TLI, const Type *Ty,
|
||||
StartingOffset + i * EltSize);
|
||||
return;
|
||||
}
|
||||
// Interpret void as zero return values.
|
||||
if (Ty == Type::VoidTy)
|
||||
return;
|
||||
// Base case: we can get an MVT for this LLVM IR type.
|
||||
ValueVTs.push_back(TLI.getValueType(Ty));
|
||||
if (Offsets)
|
||||
|
Loading…
x
Reference in New Issue
Block a user