[llvm] r360133 - Fixed "Value stored to 'Opc' is never read" warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 04:09:16 PDT 2019


Author: rksimon
Date: Tue May  7 04:09:16 2019
New Revision: 360133

URL: http://llvm.org/viewvc/llvm-project?rev=360133&view=rev
Log:
Fixed "Value stored to 'Opc' is never read" warning. NFCI.

Modified:
    llvm/trunk/lib/Target/X86/X86MCInstLower.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=360133&r1=360132&r2=360133&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Tue May  7 04:09:16 2019
@@ -767,7 +767,7 @@ static unsigned EmitNop(MCStreamer &OS,
 
   unsigned NopSize;
   unsigned Opc, BaseReg, ScaleVal, IndexReg, Displacement, SegmentReg;
-  Opc = IndexReg = Displacement = SegmentReg = 0;
+  IndexReg = Displacement = SegmentReg = 0;
   BaseReg = X86::RAX;
   ScaleVal = 1;
   switch (NumBytes) {




More information about the llvm-commits mailing list