Skip to content

Commit 2cc4ce9

Browse files
author
git apple-llvm automerger
committed
Merge commit 'e874615a62e6' from llvm.org/main into next
2 parents f1634fd + e874615 commit 2cc4ce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/llc/llc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,8 @@ static int compileModule(char **argv, LLVMContext &Context) {
815815
reportError("target does not support generation of this file type");
816816
}
817817

818-
const_cast<TargetLoweringObjectFile *>(Target->getObjFileLowering())
819-
->Initialize(MMIWP->getMMI().getContext(), *Target);
818+
Target->getObjFileLowering()->Initialize(MMIWP->getMMI().getContext(),
819+
*Target);
820820
if (MIR) {
821821
assert(MMIWP && "Forgot to create MMIWP?");
822822
if (MIR->parseMachineFunctions(*M, MMIWP->getMMI()))

0 commit comments

Comments
 (0)