Skip to content

Commit

Permalink
ir: Make type parameters respect constness appropriately.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed May 14, 2018
1 parent 3b68184 commit 35fb113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ir/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 35fb113

Please sign in to comment.