[PATCH] D23818: Fix warning about unused member

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 15:37:35 PDT 2016


vitalybuka created this revision.
vitalybuka added a subscriber: llvm-commits.

https://reviews.llvm.org/D23818

Files:
  include/llvm/CodeGen/StackMaps.h
  lib/CodeGen/StackMaps.cpp

Index: lib/CodeGen/StackMaps.cpp
===================================================================
--- lib/CodeGen/StackMaps.cpp
+++ lib/CodeGen/StackMaps.cpp
@@ -35,8 +35,7 @@
 
 const char *StackMaps::WSMP = "Stack Maps: ";
 
-StackMapOpers::StackMapOpers(const MachineInstr *MI) 
-  : MI(MI) {
+StackMapOpers::StackMapOpers(const MachineInstr *MI) {
   assert(getVarIdx() <= MI->getNumOperands() &&
          "invalid stackmap definition");
 }
Index: include/llvm/CodeGen/StackMaps.h
===================================================================
--- include/llvm/CodeGen/StackMaps.h
+++ include/llvm/CodeGen/StackMaps.h
@@ -31,9 +31,6 @@
   /// Enumerate the meta operands.
   enum { IDPos, NBytesPos };
 
-private:
-  const MachineInstr *MI;
-
 public:
   explicit StackMapOpers(const MachineInstr *MI);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23818.69050.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160823/9c885499/attachment.bin>


More information about the llvm-commits mailing list