Skip to content

Commit 92c06a4

Browse files
committed
fmt
Created using spr 1.3.4
1 parent 3a96227 commit 92c06a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clang/lib/CodeGen/SanitizerMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ void SanitizerMetadata::reportGlobal(llvm::GlobalVariable *GV,
9292
FsanitizeArgument.Mask & SanitizerKind::HWAddress, GV, Loc, Ty);
9393

9494
if (shouldTagGlobal(*GV)) {
95-
Meta.Memtag |=
96-
static_cast<bool>(FsanitizeArgument.Mask & SanitizerKind::MemtagGlobals);
95+
Meta.Memtag |= static_cast<bool>(FsanitizeArgument.Mask &
96+
SanitizerKind::MemtagGlobals);
9797
Meta.Memtag &= !NoSanitizeAttrSet.hasOneOf(SanitizerKind::MemTag);
9898
Meta.Memtag &= !CGM.isInNoSanitizeList(
9999
FsanitizeArgument.Mask & SanitizerKind::MemTag, GV, Loc, Ty);

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
764764

765765
const DataLayout &DL = GV->getDataLayout();
766766
uint64_t Size = DL.getTypeAllocSize(GV->getValueType());
767-
if (GV->isTagged()) Size = alignTo(Size, 16);
767+
if (GV->isTagged())
768+
Size = alignTo(Size, 16);
768769

769770
// If the alignment is specified, we *must* obey it. Overaligning a global
770771
// with a specified alignment is a prompt way to break globals emitted to

0 commit comments

Comments
 (0)