From 4eceea7c62da8cc95a0943020cbdb3593e337c97 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Apr 2020 14:04:37 +0200 Subject: [PATCH] LibX86: When there are multiple REPZ/REPNZ prefixes, the last one wins --- Libraries/LibX86/Instruction.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibX86/Instruction.cpp b/Libraries/LibX86/Instruction.cpp index 68cca330ea..530d347571 100644 --- a/Libraries/LibX86/Instruction.cpp +++ b/Libraries/LibX86/Instruction.cpp @@ -896,8 +896,6 @@ Instruction::Instruction(InstructionStream& stream, bool o32, bool a32) continue; } if (opbyte == Prefix::REPZ || opbyte == Prefix::REPNZ) { - // FIXME: What should we do here? Respect the first or last prefix? - ASSERT(!m_rep_prefix); m_rep_prefix = opbyte; continue; }