Index: src/compiler/operator.h |
diff --git a/src/compiler/operator.h b/src/compiler/operator.h |
index bb318d846df189d4e9fc1aeff968e6ac9f8f9472..e45ae0a29d5dae7c4e2df4aadf48284c593d2813 100644 |
--- a/src/compiler/operator.h |
+++ b/src/compiler/operator.h |
@@ -266,7 +266,7 @@ typedef Operator1<Unique<Name> > NameOperator; |
// Helper to extract parameters from Operator1<*> operator. |
template <typename T> |
-static inline T OpParameter(const Operator* op) { |
+static inline const T& OpParameter(const Operator* op) { |
return reinterpret_cast<const Operator1<T>*>(op)->parameter(); |
} |