Skip to content

Commit 8a4cbea

Browse files
committed
[Clang] Unbreak build take 2 using uint64_t() explicitly.
1 parent b42d245 commit 8a4cbea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/Targets/Sparc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const {
266266
// All structs, even empty ones, should take up a register argument slot,
267267
// so pin the minimum struct size to one bit.
268268
CB.pad(llvm::alignTo(
269-
std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), 1ULL), 64));
269+
std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), uint64_t(1)),
270+
64));
270271

271272
// Try to use the original type for coercion.
272273
llvm::Type *CoerceTy = CB.isUsableType(StrTy) ? StrTy : CB.getType();

0 commit comments

Comments
 (0)