forked from OSchip/llvm-project
[X86] Remove unnecessary duplicate code (PR30649). NFCI.
llvm-svn: 298495
This commit is contained in:
parent
421fa6c9e2
commit
b19a507a88
|
@ -650,11 +650,6 @@ static int readPrefixes(struct InternalInstruction* insn) {
|
|||
insn->addressSize = (hasAdSize ? 4 : 8);
|
||||
insn->displacementSize = 4;
|
||||
insn->immediateSize = 4;
|
||||
} else if (insn->rexPrefix) {
|
||||
insn->registerSize = (hasOpSize ? 2 : 4);
|
||||
insn->addressSize = (hasAdSize ? 4 : 8);
|
||||
insn->displacementSize = (hasOpSize ? 2 : 4);
|
||||
insn->immediateSize = (hasOpSize ? 2 : 4);
|
||||
} else {
|
||||
insn->registerSize = (hasOpSize ? 2 : 4);
|
||||
insn->addressSize = (hasAdSize ? 4 : 8);
|
||||
|
|
Loading…
Reference in New Issue