diff options
author | Dan Gohman <dan433584@gmail.com> | 2013-02-08 22:01:47 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2013-02-08 22:01:47 +0000 |
commit | d3da6d5dda00761d383a1c339f54da470643c663 (patch) | |
tree | 98417ea17b3282bcfb6f22c2d1a4343c262e3f61 /lib/IR | |
parent | cb64462c79fc9550b3c91161cca59e861328019d (diff) | |
download | external_llvm-d3da6d5dda00761d383a1c339f54da470643c663.zip external_llvm-d3da6d5dda00761d383a1c339f54da470643c663.tar.gz external_llvm-d3da6d5dda00761d383a1c339f54da470643c663.tar.bz2 |
Minor cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 11e06c9..efa5978 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); |