diff options
| author | 2014-09-30 23:10:02 +0000 | |
|---|---|---|
| committer | 2014-09-30 23:10:03 +0000 | |
| commit | 8283e079a209e81caafd123a12a525922368fd34 (patch) | |
| tree | 4f344df6ec2612d8ddbf0a00e2b49a39a7501249 /runtime/quick_exception_handler.cc | |
| parent | f9098ea6d7326b4d8de2860d18adf74046b80855 (diff) | |
| parent | 07140838a3ee44a6056cacdc78f2930e019107da (diff) | |
Merge "Enable -Wunreachable-code"
Diffstat (limited to 'runtime/quick_exception_handler.cc')
| -rw-r--r-- | runtime/quick_exception_handler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index 43d21de765..2c158ba963 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -230,7 +230,7 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor { reinterpret_cast<mirror::Object*>(GetVReg(m, reg, kind))); break; case kLongLoVReg: - if (GetVRegKind(reg + 1, kinds), kLongHiVReg) { + if (GetVRegKind(reg + 1, kinds) == kLongHiVReg) { // Treat it as a "long" register pair. new_frame->SetVRegLong(reg, GetVRegPair(m, reg, kLongLoVReg, kLongHiVReg)); } else { @@ -238,14 +238,14 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor { } break; case kLongHiVReg: - if (GetVRegKind(reg - 1, kinds), kLongLoVReg) { + if (GetVRegKind(reg - 1, kinds) == kLongLoVReg) { // Nothing to do: we treated it as a "long" register pair. } else { new_frame->SetVReg(reg, GetVReg(m, reg, kind)); } break; case kDoubleLoVReg: - if (GetVRegKind(reg + 1, kinds), kDoubleHiVReg) { + if (GetVRegKind(reg + 1, kinds) == kDoubleHiVReg) { // Treat it as a "double" register pair. new_frame->SetVRegLong(reg, GetVRegPair(m, reg, kDoubleLoVReg, kDoubleHiVReg)); } else { @@ -253,7 +253,7 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor { } break; case kDoubleHiVReg: - if (GetVRegKind(reg - 1, kinds), kDoubleLoVReg) { + if (GetVRegKind(reg - 1, kinds) == kDoubleLoVReg) { // Nothing to do: we treated it as a "double" register pair. } else { new_frame->SetVReg(reg, GetVReg(m, reg, kind)); |