Skip to content

Commit 908693b

Browse files
committed
Fix formatting
1 parent dfb8a9d commit 908693b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,15 @@ class TargetInfo : public TransferrableTargetInfo,
518518
/// getInt128Align() - Returns the alignment of Int128.
519519
unsigned getInt128Align() const { return Int128Align; }
520520

521-
/// getBitIntAlign/Width - Return aligned size of '_BitInt' and
521+
/// getBitIntAlign/Width - Return aligned size of '_BitInt' and
522522
/// 'unsigned _BitInt' for this target, in bits.
523523
unsigned getBitIntWidth(unsigned NumBits) const {
524-
return llvm::alignTo(NumBits, getBitIntAlign(NumBits));}
524+
return llvm::alignTo(NumBits, getBitIntAlign(NumBits));
525+
}
525526
virtual unsigned getBitIntAlign(unsigned NumBits) const {
526-
return std::clamp<unsigned>(llvm::PowerOf2Ceil(NumBits), getCharWidth(),
527-
getLongLongAlign());}
527+
return std::clamp<unsigned>(llvm::PowerOf2Ceil(NumBits), getCharWidth(),
528+
getLongLongAlign());
529+
}
528530

529531
/// getShortAccumWidth/Align - Return the size of 'signed short _Accum' and
530532
/// 'unsigned short _Accum' for this target, in bits.

clang/lib/Basic/Targets/AArch64.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,9 +1473,10 @@ bool AArch64TargetInfo::validatePointerAuthKey(
14731473

14741474
bool AArch64TargetInfo::hasInt128Type() const { return true; }
14751475

1476-
unsigned AArch64TargetInfo::getBitIntAlign(unsigned NumBits) const{
1477-
return std::clamp<unsigned>(llvm::PowerOf2Ceil(NumBits), getCharWidth(),
1478-
getInt128Align());}
1476+
unsigned AArch64TargetInfo::getBitIntAlign(unsigned NumBits) const {
1477+
return std::clamp<unsigned>(llvm::PowerOf2Ceil(NumBits), getCharWidth(),
1478+
getInt128Align());
1479+
}
14791480

14801481
AArch64leTargetInfo::AArch64leTargetInfo(const llvm::Triple &Triple,
14811482
const TargetOptions &Opts)

clang/lib/Basic/Targets/AArch64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ class LLVM_LIBRARY_VISIBILITY AArch64TargetInfo : public TargetInfo {
204204
bool validateTarget(DiagnosticsEngine &Diags) const override;
205205

206206
unsigned getBitIntAlign(unsigned NumBits) const override;
207-
208207
};
209208

210209
class LLVM_LIBRARY_VISIBILITY AArch64leTargetInfo : public AArch64TargetInfo {

0 commit comments

Comments
 (0)