[llvm] r174756 - Minor cleanup.

Dan Gohman dan433584 at gmail.com
Fri Feb 8 14:01:47 PST 2013


Author: djg
Date: Fri Feb  8 16:01:47 2013
New Revision: 174756

URL: http://llvm.org/viewvc/llvm-project?rev=174756&view=rev
Log:
Minor cleanup.

Modified:
    llvm/trunk/lib/IR/AsmWriter.cpp

Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=174756&r1=174755&r2=174756&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Fri Feb  8 16:01:47 2013
@@ -1923,7 +1923,7 @@ void AssemblyWriter::printInstruction(co
 
   } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
     Out << ' ';
-    TypePrinter.print(AI->getType()->getElementType(), Out);
+    TypePrinter.print(AI->getAllocatedType(), Out);
     if (!AI->getArraySize() || AI->isArrayAllocation()) {
       Out << ", ";
       writeOperand(AI->getArraySize(), true);





More information about the llvm-commits mailing list