diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-03 19:41:34 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-03 20:14:40 -0700 |
commit | ca71458862be8505330b7fd5649a062f31d143dc (patch) | |
tree | 7bc749056ab65906a147cc8e1d92e8be3ffea2cc /compiler/dex/local_value_numbering.cc | |
parent | 9d231cc422b7b32d00bd43ca6993b2dd7e9989ea (diff) | |
download | art-ca71458862be8505330b7fd5649a062f31d143dc.tar.gz art-ca71458862be8505330b7fd5649a062f31d143dc.tar.bz2 art-ca71458862be8505330b7fd5649a062f31d143dc.zip |
ART: Add Clang's -Wused-but-marked-unused
Add detection of wrong unused annotations. Fix our codebase.
Change-Id: I85cc20f2eac71c1ec6c5c7cd6efb08454a629634
Diffstat (limited to 'compiler/dex/local_value_numbering.cc')
-rw-r--r-- | compiler/dex/local_value_numbering.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/dex/local_value_numbering.cc b/compiler/dex/local_value_numbering.cc index dc222b521..cdf5e38a9 100644 --- a/compiler/dex/local_value_numbering.cc +++ b/compiler/dex/local_value_numbering.cc @@ -166,9 +166,9 @@ class LocalValueNumbering::AliasingArrayVersions { return gvn->LookupValue(kAliasingArrayOp, type, location, memory_version); } - static uint16_t LookupMergeValue(GlobalValueNumbering* gvn ATTRIBUTE_UNUSED, + static uint16_t LookupMergeValue(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, - uint16_t type ATTRIBUTE_UNUSED, uint16_t location) { + uint16_t type, uint16_t location) { // If the location is non-aliasing in lvn, use the non-aliasing value. uint16_t array = gvn->GetArrayLocationBase(location); if (lvn->IsNonAliasingArray(array, type)) { @@ -182,8 +182,6 @@ class LocalValueNumbering::AliasingArrayVersions { static bool HasNewBaseVersion(GlobalValueNumbering* gvn ATTRIBUTE_UNUSED, const LocalValueNumbering* lvn, uint16_t type ATTRIBUTE_UNUSED) { - UNUSED(gvn); - UNUSED(type); return lvn->global_memory_version_ == lvn->merge_new_memory_version_; } |