aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-06-25 21:19:08 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-06-25 21:21:10 +0200
commit5b2573e9c7c9fdbd80cb58711714955479573054 (patch)
tree9cd4614251adb770e0b9e6d5e319ddeefb1d7d7f /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
parent585496803ca25cbbafc942355f715cce46d736fb (diff)
downloadllvm-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.cpp4
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())