projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9d7484
)
FixupLEAPass::fixupIncDec - non-LEA opcodes should not happen here. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Sat, 11 May 2019 16:02:34 +0000
(16:02 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Sat, 11 May 2019 16:02:34 +0000
(16:02 +0000)
Matches what we do in other functions and fixes scan-build warning about uninitialized NewOpcode variable.
llvm-svn: 360525
llvm/lib/Target/X86/X86FixupLEAs.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86FixupLEAs.cpp
b/llvm/lib/Target/X86/X86FixupLEAs.cpp
index bbf57f9571d3c53ba177fddbeb7de2d1df1274e3..c8ef92f35c223de7a326ac91a04793fa8b25a707 100644
(file)
--- a/
llvm/lib/Target/X86/X86FixupLEAs.cpp
+++ b/
llvm/lib/Target/X86/X86FixupLEAs.cpp
@@
-366,6
+366,8
@@
bool FixupLEAPass::fixupIncDec(MachineBasicBlock::iterator &I,
unsigned NewOpcode;
bool isINC = MI.getOperand(1 + X86::AddrDisp).getImm() == 1;
switch (MI.getOpcode()) {
+ default:
+ llvm_unreachable("Unexpected LEA instruction");
case X86::LEA32r:
case X86::LEA64_32r:
NewOpcode = isINC ? X86::INC32r : X86::DEC32r;