aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.cc')
-rw-r--r--gcc/rust/backend/rust-compile-base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc
index 0051d0f..010049e 100644
--- a/gcc/rust/backend/rust-compile-base.cc
+++ b/gcc/rust/backend/rust-compile-base.cc
@@ -417,7 +417,7 @@ HIRCompileBase::mark_addressable (tree exp, location_t locus)
}
tree
-HIRCompileBase::address_expression (tree expr, Location location)
+HIRCompileBase::address_expression (tree expr, location_t location)
{
if (expr == error_mark_node)
return error_mark_node;
@@ -748,7 +748,7 @@ HIRCompileBase::compile_constant_item (
tree
HIRCompileBase::named_constant_expression (tree type_tree,
const std::string &name,
- tree const_val, Location location)
+ tree const_val, location_t location)
{
if (type_tree == error_mark_node || const_val == error_mark_node)
return error_mark_node;