[llvm] r372662 - Fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 14:32:38 PDT 2019
Author: rksimon
Date: Mon Sep 23 14:32:38 2019
New Revision: 372662
URL: http://llvm.org/viewvc/llvm-project?rev=372662&view=rev
Log:
Fix uninitialized variable warning. NFCI.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonOptAddrMode.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonOptAddrMode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonOptAddrMode.cpp?rev=372662&r1=372661&r2=372662&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonOptAddrMode.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonOptAddrMode.cpp Mon Sep 23 14:32:38 2019
@@ -543,7 +543,7 @@ bool HexagonOptAddrMode::changeLoad(Mach
bool HexagonOptAddrMode::changeStore(MachineInstr *OldMI, MachineOperand ImmOp,
unsigned ImmOpNum) {
bool Changed = false;
- unsigned OpStart;
+ unsigned OpStart = 0;
unsigned OpEnd = OldMI->getNumOperands();
MachineBasicBlock *BB = OldMI->getParent();
auto UsePos = MachineBasicBlock::iterator(OldMI);
More information about the llvm-commits
mailing list