summaryrefslogtreecommitdiff
path: root/lib/IR/AsmWriter.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2013-02-08 22:01:47 +0000
committerDan Gohman <dan433584@gmail.com>2013-02-08 22:01:47 +0000
commitd3da6d5dda00761d383a1c339f54da470643c663 (patch)
tree98417ea17b3282bcfb6f22c2d1a4343c262e3f61 /lib/IR/AsmWriter.cpp
parentcb64462c79fc9550b3c91161cca59e861328019d (diff)
downloadllvm-d3da6d5dda00761d383a1c339f54da470643c663.tar.gz
llvm-d3da6d5dda00761d383a1c339f54da470643c663.tar.bz2
llvm-d3da6d5dda00761d383a1c339f54da470643c663.tar.xz
Minor cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AsmWriter.cpp')
-rw-r--r--lib/IR/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp
index 11e06c9750..efa59788aa 100644
--- a/lib/IR/AsmWriter.cpp
+++ b/lib/IR/AsmWriter.cpp
@@ -1923,7 +1923,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
} 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);