diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-05-14 19:08:15 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-05-14 19:08:50 +0200 |
commit | 35fb11392449fd34db36b05c24b2f3e746120705 (patch) | |
tree | 428957d31e7f89eb3a77d672eedec370f29ab437 | |
parent | 3b6818431ca88ee286984a9ddad6c86c7e807126 (diff) |
ir: Make type parameters respect constness appropriately.
-rw-r--r-- | src/ir/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs index 1cb1d5f9..91ec22b3 100644 --- a/src/ir/item.rs +++ b/src/ir/item.rs @@ -1449,8 +1449,8 @@ impl ClangItemParser for Item { return Ok(Item::new_opaque_type(id, ty, ctx)); } - if let Some(id) = Item::type_param(Some(id), location, ctx) { - return Ok(id); + if let Some(param_id) = Item::type_param(None, location, ctx) { + return Ok(ctx.build_ty_wrapper(id, param_id, None, ty)); } } |