Use ConstantExpression for FLAG_ONE_WAY.
In order to simplify printing it in comments (and later simplify
|'ing it).
Bug: 37525755
Test: hidl_test
Change-Id: Ifcf23b92966e29abe42c267e2b56b2d7fe45c217
diff --git a/ConstantExpression.cpp b/ConstantExpression.cpp
index aa2ebec..a025dd2 100644
--- a/ConstantExpression.cpp
+++ b/ConstantExpression.cpp
@@ -173,7 +173,7 @@
CHECK(!expr.empty());
CHECK(isSupported(kind));
- mTrivialDescription = true;
+ mTrivialDescription = std::to_string(value) == expr;
mExpr = expr;
mValueKind = kind;
mValue = value;