We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42d245 commit 8a4cbeaCopy full SHA for 8a4cbea
clang/lib/CodeGen/Targets/Sparc.cpp
@@ -266,7 +266,8 @@ SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const {
266
// All structs, even empty ones, should take up a register argument slot,
267
// so pin the minimum struct size to one bit.
268
CB.pad(llvm::alignTo(
269
- std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), 1ULL), 64));
+ std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), uint64_t(1)),
270
+ 64));
271
272
// Try to use the original type for coercion.
273
llvm::Type *CoerceTy = CB.isUsableType(StrTy) ? StrTy : CB.getType();
0 commit comments