Closed
Description
An assertion failure in clang prevents to use a const
global variable in a (non-default) address space with a dynamic initialization, for example:
int f();
extern const int __attribute__((address_space(10))) test3 = f();
The issue is related to the emission of an llvm.invariant.start
intrinsic in the dynamic initialization of const
variables.
(Issue diagnosed with help from @kortbeek-snps.)