about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2015-02-10 23:43:38 +0100
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-02-10 23:43:38 +0100
commit61db6923e25d4d1f6a56badf8a1674289c411e02 (patch)
tree47a806773538ace2e5f4c31c455afc0cdde885a0 /src/rustllvm/RustWrapper.cpp
parent88d8ba5ab3b1d22288b021708c3d87464e43b880 (diff)
downloadrust-61db6923e25d4d1f6a56badf8a1674289c411e02.tar.gz
rust-61db6923e25d4d1f6a56badf8a1674289c411e02.zip
Fix ICE when compiling "extern" rust functions
As the function comment already says, the types generated in the
foreign_signture function don't necessarily match the types used for a
corresponding rust function. Therefore we can't just use these types to
guide the translation of the wrapper function that bridges between the
external ABI and the rust ABI. Instead, we can query LLVM about the
types used in the rust function and use those to generate an appropriate
wrapper.

Fixes #21454
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions