diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-25 10:48:57 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-25 10:48:57 +0200 |
commit | 18d7e822ab22e6747f01b0409ace5044733be162 (patch) | |
tree | 869836b06e6f857cd258c940a55c9ae03df8f032 /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | 536872a1f7a1f9fa72591e1424eaece39f5edd1a (diff) | |
download | llvm-18d7e822ab22e6747f01b0409ace5044733be162.zip llvm-18d7e822ab22e6747f01b0409ace5044733be162.tar.gz llvm-18d7e822ab22e6747f01b0409ace5044733be162.tar.bz2 |
[OpaquePtr] Enumerate alloca type
This is no longer implicitly enumerated through the pointer type.
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()); |