[clang] 8a4cbea - [Clang] Unbreak build take 2 using uint64_t() explicitly.
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Wed May 15 07:49:15 PDT 2024
Author: Florian Hahn
Date: 2024-05-15T15:49:03+01:00
New Revision: 8a4cbeada930bf11fe740a2038bd5a3230712284
URL: https://github.com/llvm/llvm-project/commit/8a4cbeada930bf11fe740a2038bd5a3230712284
DIFF: https://github.com/llvm/llvm-project/commit/8a4cbeada930bf11fe740a2038bd5a3230712284.diff
LOG: [Clang] Unbreak build take 2 using uint64_t() explicitly.
Added:
Modified:
clang/lib/CodeGen/Targets/Sparc.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/Targets/Sparc.cpp b/clang/lib/CodeGen/Targets/Sparc.cpp
index 13e9550781d17..561f0b514d909 100644
--- a/clang/lib/CodeGen/Targets/Sparc.cpp
+++ b/clang/lib/CodeGen/Targets/Sparc.cpp
@@ -266,7 +266,8 @@ SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const {
// All structs, even empty ones, should take up a register argument slot,
// so pin the minimum struct size to one bit.
CB.pad(llvm::alignTo(
- std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), 1ULL), 64));
+ std::max(CB.DL.getTypeSizeInBits(StrTy).getKnownMinValue(), uint64_t(1)),
+ 64));
// Try to use the original type for coercion.
llvm::Type *CoerceTy = CB.isUsableType(StrTy) ? StrTy : CB.getType();
More information about the cfe-commits
mailing list