diff options
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 7baed6c..c347c401 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -469,6 +469,8 @@ ValueEnumerator::ValueEnumerator(const Module &M, EnumerateType(SVI->getShuffleMaskForBitcode()->getType()); if (auto *GEP = dyn_cast<GetElementPtrInst>(&I)) EnumerateType(GEP->getSourceElementType()); + if (auto *AI = dyn_cast<AllocaInst>(&I)) + EnumerateType(AI->getAllocatedType()); EnumerateType(I.getType()); if (const auto *Call = dyn_cast<CallBase>(&I)) { EnumerateAttributes(Call->getAttributes()); |