File tree Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,6 @@ void AsmPrinter::emitInlineAsm(const MachineInstr *MI) const {
400
400
" Reserved registers on the clobber list may not be "
401
401
" preserved across the asm statement, and clobbering them may "
402
402
" lead to undefined behaviour." ;
403
- assert (MMI && " MMI can not be nullptr!" );
404
403
MMI->getModule ()->getContext ().diagnose (DiagnosticInfoInlineAsm (
405
404
LocCookie, Msg, DiagnosticSeverity::DS_Warning));
406
405
MMI->getModule ()->getContext ().diagnose (
Original file line number Diff line number Diff line change @@ -769,7 +769,6 @@ void X86AsmPrinter::emitStartOfAsmFile(Module &M) {
769
769
if (!TT.isArch32Bit () && !TT.isArch64Bit ())
770
770
llvm_unreachable (" CFProtection used on invalid architecture!" );
771
771
MCSection *Cur = OutStreamer->getCurrentSectionOnly ();
772
- assert (MMI && " MMI can not be nullptr!" );
773
772
MCSection *Nt = MMI->getContext ().getELFSection (
774
773
" .note.gnu.property" , ELF::SHT_NOTE, ELF::SHF_ALLOC);
775
774
OutStreamer->switchSection (Nt);
You can’t perform that action at this time.
0 commit comments