summaryrefslogtreecommitdiff
path: root/cmdline/unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline/unit.h')
-rw-r--r--cmdline/unit.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmdline/unit.h b/cmdline/unit.h
index f73981fbd3..0b5c344f9e 100644
--- a/cmdline/unit.h
+++ b/cmdline/unit.h
@@ -21,13 +21,7 @@ namespace art {
// Used for arguments that simply indicate presence (e.g. "-help") without any values.
struct Unit {
- // Historical note: We specified a user-defined constructor to avoid
- // 'Conditional jump or move depends on uninitialised value(s)' errors
- // when running Valgrind.
- Unit() {}
- Unit(const Unit&) = default;
- ~Unit() {}
- bool operator==(Unit) const {
+ bool operator==(const Unit&) const {
return true;
}
};