Fixes working towards PR341
[oota-llvm.git] / lib / Transforms / Scalar / ScalarReplAggregates.cpp
index aeba94afa1d2abfc80b82f897cc6ccffb1526883..44ef7905bdd96a8b6ac95d5f449a2bd21538a156 100644 (file)
@@ -294,7 +294,7 @@ bool SROA::isSafeAllocaToPromote(AllocationInst *AI) {
        I != E; ++I)
     if (!isSafeUseOfAllocation(cast<Instruction>(*I))) {
       DEBUG(std::cerr << "Cannot transform: " << *AI << "  due to user: "
-                      << *I);
+                      << **I);
       return false;
     }
   return true;