
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
273 B
Plaintext
8 lines
273 B
Plaintext
RUN: llvm-dis %p/Inputs/inalloca-upgrade.bc -o - | FileCheck %s
|
|
|
|
Make sure we upgrade old-style IntAttribute inalloca records to a
|
|
fully typed version correctly.
|
|
|
|
CHECK: call void @bar(ptr inalloca({ ptr, i8 }) %ptr)
|
|
CHECK: invoke void @bar(ptr inalloca({ ptr, i8 }) %ptr)
|