Can't use ref to stack value!
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 9 Aug 2001 20:14:22 +0000 (20:14 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 9 Aug 2001 20:14:22 +0000 (20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h

index 3184c98c46e716c1c6e5b89d60b83084456a64d4..5d968c3d36880fe720b33558ff117b9b581079f3 100644 (file)
@@ -293,7 +293,7 @@ class ValOpIterator : public std::forward_iterator<_V, ptrdiff_t> {
 private:
   unsigned int i;
   int resultPos;
-  _MI*& minstr;
+  _MI* minstr;
   
   inline void  skipToNextVal() {
     while (i < minstr->getNumOperands() &&