aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-tree.cc
diff options
context:
space:
mode:
authorFaisal Abbas <90.abbasfaisal@gmail.com>2022-08-16 22:03:23 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-25 12:40:28 +0100
commit0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1 (patch)
treea509c55e5efc69a6d4ec408d02f1e93f5cacd35d /gcc/rust/backend/rust-tree.cc
parent4ca228d2f32e5eb6e9516f487be85383225d5a00 (diff)
downloadgcc-0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1.zip
gcc-0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1.tar.gz
gcc-0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1.tar.bz2
rust-tree.cc: comment some important code instead of removing it.
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
-rw-r--r--gcc/rust/backend/rust-tree.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index ce820f0..996ade5 100644
--- a/gcc/rust/backend/rust-tree.cc
+++ b/gcc/rust/backend/rust-tree.cc
@@ -4805,6 +4805,13 @@ build_address (tree t)
tree
fold_builtin_source_location (location_t loc)
{
+ // if (source_location_impl == NULL_TREE)
+ // {
+ // auto_diagnostic_group d;
+ // source_location_impl = get_source_location_impl_type (loc);
+ // if (source_location_impl == error_mark_node)
+ // inform (loc, "evaluating %qs", "__builtin_source_location");
+ // }
if (source_location_impl == error_mark_node)
return build_zero_cst (const_ptr_type_node);
if (source_location_table == NULL)