We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c6a8b commit a63efd2Copy full SHA for a63efd2
llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -766,8 +766,8 @@ void X86AsmPrinter::emitStartOfAsmFile(Module &M) {
766
767
if (FeatureFlagsAnd) {
768
// Emit a .note.gnu.property section with the flags.
769
- if (!TT.isArch32Bit() && !TT.isArch64Bit())
770
- llvm_unreachable("CFProtection used on invalid architecture!");
+ assert((TT.isArch32Bit() || TT.isArch64Bit()) &&
+ "CFProtection used on invalid architecture!");
771
MCSection *Cur = OutStreamer->getCurrentSectionOnly();
772
MCSection *Nt = MMI->getContext().getELFSection(
773
".note.gnu.property", ELF::SHT_NOTE, ELF::SHF_ALLOC);
0 commit comments