Skip to content

Commit 3d23f44

Browse files
Merge pull request #8431 from augusto2112/6.0-struct-unsigned
Deal with DIComposite types which aren't enums in isUnsignedDIType
2 parents 82a7bec + 1db8c93 commit 3d23f44

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)