aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r--gcc/go/gofrontend/expressions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 712f687..e3747cc 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -916,6 +916,11 @@ class Expression
bool
is_local_variable() const;
+ // Return true if multiple evaluations of this expression are OK.
+ // This is true for simple variable references and constants.
+ bool
+ is_multi_eval_safe();
+
// Return true if two expressions refer to the same variable or
// struct field.
static bool