
Always read bitcode according to the -opaque-pointers mode. Do not perform auto-detection to implicitly switch to typed pointers. This is a step towards removing typed pointer support, and also eliminates the class of problems where linking may fail if a typed pointer module is loaded before an opaque pointer module. (The latest place where this was encountered is D139924, but this has previously been fixed in other places doing bitcode linking as well.) Differential Revision: https://reviews.llvm.org/D139940
8 lines
261 B
Plaintext
8 lines
261 B
Plaintext
RUN: llvm-dis %p/Inputs/byval-upgrade.bc -o - | FileCheck %s
|
|
|
|
Make sure we upgrade old-stile IntAttribute byval records to a fully typed
|
|
version correctly.
|
|
|
|
CHECK: call void @bar(ptr byval({ ptr, i8 }) %ptr)
|
|
CHECK: invoke void @bar(ptr byval({ ptr, i8 }) %ptr)
|