The name of the label currently used in our assert() implementation can cause issues when using LTO. The linker may try to inline the function, which causes an error because there are then multiple labels with the same name. This did happen to me yesterday when I was experimenting with LTO.
This fixes that issue by replacing the label with a local label (link leads to gas docs, but LLVM follows the same behavior).
The name of the label currently used in our
assert()
implementation can cause issues when using LTO. The linker may try to inline the function, which causes an error because there are then multiple labels with the same name. This did happen to me yesterday when I was experimenting with LTO.This fixes that issue by replacing the label with a local label (link leads to gas docs, but LLVM follows the same behavior).