mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Fix formatting to match coding standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -397,8 +397,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
|
|||||||
Other.getName() +"'!");
|
Other.getName() +"'!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
// For scalar types, the bitsize of this type must be larger
|
// For scalar types, the bitsize of this type must be larger
|
||||||
// than that of the other.
|
// than that of the other.
|
||||||
if (Type.getSizeInBits() >= OtherType.getSizeInBits()) {
|
if (Type.getSizeInBits() >= OtherType.getSizeInBits()) {
|
||||||
@ -450,8 +449,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
|
|||||||
MadeChange = true;
|
MadeChange = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
} else if (isFloatingPoint(*TVI)) {
|
||||||
else if (isFloatingPoint(*TVI)) {
|
|
||||||
++OtherFPSize;
|
++OtherFPSize;
|
||||||
if (*TVI == SmallestFP) {
|
if (*TVI == SmallestFP) {
|
||||||
TVI = Other.TypeVec.erase(TVI);
|
TVI = Other.TypeVec.erase(TVI);
|
||||||
@ -465,8 +463,8 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
|
|||||||
|
|
||||||
// If this is the only type in the large set, the constraint can never be
|
// If this is the only type in the large set, the constraint can never be
|
||||||
// satisfied.
|
// satisfied.
|
||||||
if ((Other.hasIntegerTypes() && OtherIntSize == 0)
|
if ((Other.hasIntegerTypes() && OtherIntSize == 0) ||
|
||||||
|| (Other.hasFloatingPointTypes() && OtherFPSize == 0)) {
|
(Other.hasFloatingPointTypes() && OtherFPSize == 0)) {
|
||||||
TP.error("Type inference contradiction found, '" +
|
TP.error("Type inference contradiction found, '" +
|
||||||
Other.getName() + "' has nothing larger than '" + getName() +"'!");
|
Other.getName() + "' has nothing larger than '" + getName() +"'!");
|
||||||
return false;
|
return false;
|
||||||
@ -508,8 +506,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
|
|||||||
MadeChange = true;
|
MadeChange = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
} else if (isFloatingPoint(*TVI)) {
|
||||||
else if (isFloatingPoint(*TVI)) {
|
|
||||||
++FPSize;
|
++FPSize;
|
||||||
if (*TVI == LargestFP) {
|
if (*TVI == LargestFP) {
|
||||||
TVI = TypeVec.erase(TVI);
|
TVI = TypeVec.erase(TVI);
|
||||||
@ -523,8 +520,8 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) {
|
|||||||
|
|
||||||
// If this is the only type in the small set, the constraint can never be
|
// If this is the only type in the small set, the constraint can never be
|
||||||
// satisfied.
|
// satisfied.
|
||||||
if ((hasIntegerTypes() && IntSize == 0)
|
if ((hasIntegerTypes() && IntSize == 0) ||
|
||||||
|| (hasFloatingPointTypes() && FPSize == 0)) {
|
(hasFloatingPointTypes() && FPSize == 0)) {
|
||||||
TP.error("Type inference contradiction found, '" +
|
TP.error("Type inference contradiction found, '" +
|
||||||
getName() + "' has nothing smaller than '" + Other.getName()+"'!");
|
getName() + "' has nothing smaller than '" + Other.getName()+"'!");
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user