Skip to content

Commit 7c093d5

Browse files
authored
Merge pull request #8408 from augusto2112/struct-unsigned
Deal with DIComposite types which aren't enums in isUnsignedDIType
2 parents b879073 + bfa4eb2 commit 7c093d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ bool DebugHandlerBase::isUnsignedDIType(const DIType *Ty) {
189189
// FIXME: Enums without a fixed underlying type have unknown signedness
190190
// here, leading to incorrectly emitted constants.
191191
return false;
192-
} else
193-
// (Pieces of) aggregate types that get hacked apart by SROA may be
194-
// represented by a constant. Encode them as unsigned bytes.
195-
return true;
192+
}
193+
// (Pieces of) aggregate types that get hacked apart by SROA may be
194+
// represented by a constant. Encode them as unsigned bytes.
195+
return true;
196196
}
197197

198198
if (auto *DTy = dyn_cast<DIDerivedType>(Ty)) {

0 commit comments

Comments
 (0)