Skip to content

Commit b04e26e

Browse files
committed
Convert cast<> to static cast.
MCSectionXCOFF no longer has the classof memeber function so it cannot be used with cast<>.
1 parent 0cb847a commit b04e26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,7 @@ void PPCAIXAsmPrinter::emitGlobalVariableHelper(const GlobalVariable *GV) {
28252825
// Map the global variable to its CSECT.
28262826
SectionKind ProfCKind = getObjFileLowering().getKindForGlobal(GV, TM);
28272827

2828-
MCSectionXCOFF *ProfCCsect = cast<MCSectionXCOFF>(
2828+
MCSectionXCOFF *ProfCCsect = static_cast<MCSectionXCOFF *>(
28292829
getObjFileLowering().SectionForGlobal(ProfCGV, ProfCKind, TM));
28302830

28312831
ProfGenSubSections.push_back({Csect, ProfCCsect});

0 commit comments

Comments
 (0)