Skip to content

Commit a731b07

Browse files
jrtc27resistor
authored andcommitted
[NFC][AsmPrinter] Reformat CHERI block address code
1 parent 7c8981f commit a731b07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4159,7 +4159,8 @@ static void emitGlobalConstantCHERICap(const DataLayout &DL, const Constant *CV,
41594159
if (auto BA = dyn_cast<BlockAddress>(CV)) {
41604160
// For block addresses we emit `.chericap FN+(.LtmpN - FN)`
41614161
auto FnStart = AP.getSymbol(BA->getFunction());
4162-
const MCExpr *DiffToStart = MCBinaryExpr::createSub(SRE, MCSymbolRefExpr::create(FnStart, AP.OutContext), AP.OutContext);
4162+
const MCExpr *DiffToStart = MCBinaryExpr::createSub(
4163+
SRE, MCSymbolRefExpr::create(FnStart, AP.OutContext), AP.OutContext);
41634164
AP.OutStreamer->EmitCheriCapability(FnStart, DiffToStart, CapWidth);
41644165
return;
41654166
}

0 commit comments

Comments
 (0)