diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-25 21:19:08 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-25 21:21:10 +0200 |
commit | 5b2573e9c7c9fdbd80cb58711714955479573054 (patch) | |
tree | 9cd4614251adb770e0b9e6d5e319ddeefb1d7d7f /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | 585496803ca25cbbafc942355f715cce46d736fb (diff) | |
download | llvm-5b2573e9c7c9fdbd80cb58711714955479573054.zip llvm-5b2573e9c7c9fdbd80cb58711714955479573054.tar.gz llvm-5b2573e9c7c9fdbd80cb58711714955479573054.tar.bz2 |
[OpaquePtr] Enumerate GlobalAlias value type
The type 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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index c347c401..2be3ca7 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -378,8 +378,10 @@ ValueEnumerator::ValueEnumerator(const Module &M, } // Enumerate the aliases. - for (const GlobalAlias &GA : M.aliases()) + for (const GlobalAlias &GA : M.aliases()) { EnumerateValue(&GA); + EnumerateType(GA.getValueType()); + } // Enumerate the ifuncs. for (const GlobalIFunc &GIF : M.ifuncs()) |