I download the prebuilt swift 4.0 from here
<Swift.org - Not Found;
and
try to do some work on the generated LLVM BC. However, I got a seg fault
when running the binary executable compiled from bitcode as shown below:
Hm, I don’t see any inherent problems with splitting compilation like this, although it’s not something we test. The only thing I could think of is that Swift uses a custom calling convention on some platforms, but I would expect clang++ to refuse to compile the bc file at all if that were the issue. Mind filing a bug at https://bugs.swift.org <Issues · apple/swift · GitHub; ?
Thanks,
Jordan
···
On Sep 21, 2017, at 13:42, Jeffrey W via swift-users <swift-users@swift.org> wrote:
2017-09-21 19:05 GMT-04:00 Jordan Rose <jordan_rose@apple.com>:
Hm, I don’t see any inherent problems with splitting compilation like
this, although it’s not something we test. The only thing I could think of
is that Swift uses a custom calling convention on some platforms, but I
would expect clang++ to refuse to compile the bc file at all if that were
the issue. Mind filing a bug at https://bugs.swift.org ?
Thanks,
Jordan
On Sep 21, 2017, at 13:42, Jeffrey W via swift-users < > swift-users@swift.org> wrote: