aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-11-05 10:38:45 +0000
committerPhilip Herron <philip.herron@embecosm.com>2021-11-05 11:12:50 +0000
commit57acd1e20828fabe9cfe3b741680f06a1f21251e (patch)
tree7a440aaf9749d77f70d7ba3b0e99f7c60d64201d
parentd9f5eddc5a9eed7e03732c9e5bc35dd4cb5f9769 (diff)
downloadgcc-57acd1e20828fabe9cfe3b741680f06a1f21251e.zip
gcc-57acd1e20828fabe9cfe3b741680f06a1f21251e.tar.gz
gcc-57acd1e20828fabe9cfe3b741680f06a1f21251e.tar.bz2
Fix nullptr as the result is not setup in this case
-rw-r--r--gcc/rust/typecheck/rust-hir-type-check-type.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-hir-type-check-type.cc b/gcc/rust/typecheck/rust-hir-type-check-type.cc
index ee2ffe1..ca7b91b 100644
--- a/gcc/rust/typecheck/rust-hir-type-check-type.cc
+++ b/gcc/rust/typecheck/rust-hir-type-check-type.cc
@@ -95,7 +95,7 @@ TypeCheckType::visit (HIR::TypePath &path)
"TypePath %s declares generic arguments but "
"the type %s does not have any",
path.as_string ().c_str (),
- translated->as_string ().c_str ());
+ path_type->as_string ().c_str ());
}
else
{