Skip to content

Commit 3c37a8e

Browse files
committed
[NFC][AsmPrinter] Reformat CHERI block address code
1 parent a307f13 commit 3c37a8e

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
@@ -3665,7 +3665,8 @@ static void emitGlobalConstantCHERICap(const DataLayout &DL, const Constant *CV,
36653665
// For block addresses we emit `.chericap FN+(.LtmpN - FN)`
36663666
// NB: Must use a non-preemptible symbol
36673667
auto FnStart = AP.getSymbolPreferLocal(*BA->getFunction(), true);
3668-
const MCExpr *DiffToStart = MCBinaryExpr::createSub(SRE, MCSymbolRefExpr::create(FnStart, AP.OutContext), AP.OutContext);
3668+
const MCExpr *DiffToStart = MCBinaryExpr::createSub(
3669+
SRE, MCSymbolRefExpr::create(FnStart, AP.OutContext), AP.OutContext);
36693670
AP.OutStreamer->EmitCheriCapability(FnStart, DiffToStart, CapWidth);
36703671
return;
36713672
}

0 commit comments

Comments
 (0)