Skip to content

Commit da116bd

Browse files
committed
[Clang] Use ULL for std::max constant argument to fix build failure.
getKnownMinValue returns uint64_t, use ULL to make sure the second arg is also 64 bit.
1 parent eda098a commit da116bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/Targets/Sparc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ 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(), 1UL), 64));
269+
std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), 1ULL), 64));
270270

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

0 commit comments

Comments
 (0)