diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2014-01-14 18:01:24 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2014-01-14 19:22:23 +0100 |
| commit | 5902263d0af99fba3f286f589ac864ad9ccffc42 (patch) | |
| tree | 930a5e0243edd9bc3cfebc595ee44ccd56a10e96 /src/rustllvm/RustWrapper.cpp | |
| parent | 77eeddaa481fa083dfa857e5d7dd7f5ab784a9f1 (diff) | |
| download | rust-5902263d0af99fba3f286f589ac864ad9ccffc42.tar.gz rust-5902263d0af99fba3f286f589ac864ad9ccffc42.zip | |
Fix the representation of C void pointers in LLVM IR
Currently, we have c_void defined to be represented as an empty struct, but LLVM expects C's void* to be represented as i8*. That means we currently generate code in which LLVM doesn't recognize malloc() and free() and can't apply certain optimization that would remove calls to those functions.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
