diff options
author | 2015-09-17 15:39:16 +0100 | |
---|---|---|
committer | 2015-09-17 15:45:39 +0100 | |
commit | 76c92ac73eeda2582caee39dd427ca035caf172b (patch) | |
tree | 7d5baae363d7c380476ce8842ad1f43b59d48af5 /compiler/optimizing/locations.h | |
parent | a201d5eeb0903408df925a1ed1686a55238a274c (diff) |
Optimizing: Allow storing value objects in containers.
Change-Id: Ic9c6b62e36706e571fd71c18d24d8e76ae2d5c7b
Diffstat (limited to 'compiler/optimizing/locations.h')
-rw-r--r-- | compiler/optimizing/locations.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/locations.h b/compiler/optimizing/locations.h index cc3b35b467..2162ab928b 100644 --- a/compiler/optimizing/locations.h +++ b/compiler/optimizing/locations.h @@ -35,7 +35,7 @@ std::ostream& operator<<(std::ostream& os, const Location& location); * A Location is an abstraction over the potential location * of an instruction. It could be in register or stack. */ -class Location { +class Location : public ValueObject { public: enum OutputOverlap { kOutputOverlap, @@ -69,7 +69,7 @@ class Location { kUnallocated = 10, }; - Location() : value_(kInvalid) { + Location() : ValueObject(), value_(kInvalid) { // Verify that non-constant location kinds do not interfere with kConstant. static_assert((kInvalid & kLocationConstantMask) != kConstant, "TagError"); static_assert((kUnallocated & kLocationConstantMask) != kConstant, "TagError"); |