mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[OpaquePtr] Enumerate GlobalAlias value type
The type is no longer implicitly enumerated through the pointer type.
This commit is contained in:
parent
33e01a9045
commit
67a9e2940b
@ -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())
|
||||
|
@ -1,4 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
|
||||
; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis --force-opaque-pointers | FileCheck %s
|
||||
; RUN: llvm-as < %s | llvm-dis --force-opaque-pointers | FileCheck %s
|
||||
; RUN: opt --force-opaque-pointers < %s -S | FileCheck %s
|
||||
|
||||
@ -9,6 +10,9 @@
|
||||
@g2 = global i18 0
|
||||
@ga = alias i18, i18* @g2
|
||||
|
||||
; CHECK: @ga2 = alias i19, ptr @g2
|
||||
@ga2 = alias i19, i19* bitcast (i18* @g2 to i19*)
|
||||
|
||||
define void @f(i32* %p) {
|
||||
; CHECK-LABEL: define {{[^@]+}}@f
|
||||
; CHECK-SAME: (ptr [[P:%.*]]) {
|
||||
|
Loading…
Reference in New Issue
Block a user