diff options
| author | Patrick Walton <[email protected]> | 2010-12-10 16:24:47 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-10 16:24:47 -0800 |
| commit | cf8ad5f56d04dff73c8f48368eaa1c62bebd8a4a (patch) | |
| tree | 35454a8075e14824ca85e17ddc4b99a1fff52466 /src/comp | |
| parent | rustc: Move refcount incrementing out of line too (diff) | |
| download | rust-cf8ad5f56d04dff73c8f48368eaa1c62bebd8a4a.tar.xz rust-cf8ad5f56d04dff73c8f48368eaa1c62bebd8a4a.zip | |
rustc: Declare LLVM typedefs appropriately
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/trans.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 483ba7f3..bf22b237 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -261,6 +261,7 @@ fn T_taskptr() -> TypeRef { fn type_of(@crate_ctxt cx, @typeck.ty t) -> TypeRef { let TypeRef llty = type_of_inner(cx, t); check (llty as int != 0); + llvm.LLVMAddTypeName(cx.llmod, _str.buf(typeck.ty_to_str(t)), llty); ret llty; } |