Load & StoreInst no longer derive from MemAccessInst, so we don't have
to handle indexing anymore


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3484 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 910fde6..eece0c9 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -847,10 +847,8 @@
     } else {  // Performing array indexing. Just skip the 0
       ++I;
     }
-  } else if (HasImplicitAddress) {
-    
   }
-    
+
   for (; I != E; ++I)
     if ((*I)->getType() == Type::UIntTy) {
       Out << "[";
@@ -862,11 +860,13 @@
 }
 
 void CWriter::visitLoadInst(LoadInst &I) {
-  printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end());
+  Out << "*";
+  writeOperand(I.getOperand(0));
 }
 
 void CWriter::visitStoreInst(StoreInst &I) {
-  printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end());
+  Out << "*";
+  writeOperand(I.getPointerOperand());
   Out << " = ";
   writeOperand(I.getOperand(0));
 }