Skip to content

Commit 3049ce7

Browse files
pccGeneraluseAI
authored andcommitted
Fix sanitizer failure introduced by llvm#133537
1 parent 44ac252 commit 3049ce7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,6 +2478,7 @@ const MCExpr *AArch64AsmPrinter::emitPAuthRelocationAsIRelative(
24782478
std::unique_ptr<MCSubtargetInfo> STI(
24792479
TM.getTarget().createMCSubtargetInfo(TT, "", ""));
24802480
assert(STI && "Unable to create subtarget info");
2481+
this->STI = static_cast<const AArch64Subtarget *>(&*STI);
24812482

24822483
MCSymbol *Place = OutStreamer->getContext().createTempSymbol();
24832484
OutStreamer->emitLabel(Place);

0 commit comments

Comments
 (0)