mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
bail out sooner if we have two concrete but different types.
llvm-svn: 52351
This commit is contained in:
parent
896c38c96a
commit
f87729aa1f
@ -93,6 +93,10 @@ static bool RecursiveResolveTypesI(const PATypeHolder &DestTy,
|
||||
// type. For example, we cannot resolve an int to a float.
|
||||
if (DestTyT->getTypeID() != SrcTyT->getTypeID()) return true;
|
||||
|
||||
// If neither type is abstract, then they really are just different types.
|
||||
if (!DestTyT->isAbstract() && !SrcTyT->isAbstract())
|
||||
return true;
|
||||
|
||||
// Otherwise, resolve the used type used by this derived type...
|
||||
switch (DestTyT->getTypeID()) {
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user