diff options
author | 2016-01-04 12:32:24 -0800 | |
---|---|---|
committer | 2016-01-20 16:23:22 -0800 | |
commit | bf03fcd10a3ffa15468d335f26697b0473e45b36 (patch) | |
tree | 4b2a6572ba079093e928aa7d04152d8596eff807 /compiler/optimizing/nodes.cc | |
parent | 0021c310e2e613d6d180acda0d9d422dba8688b0 (diff) |
Some minor simplifications in code and tests.
Rationale: fell through the cracks of previous "intrinsics" CL.
Change-Id: If8ada79dfd70bea991c11d2b18661b951b6c4cd4
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 2eabadf861..cb7bc58b0c 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2208,10 +2208,7 @@ void HInvoke::SetIntrinsic(Intrinsics intrinsic, SetSideEffects(GetSideEffects().Union(SideEffects::CanTriggerGC())); } // Adjust method's exception status from intrinsic table. - switch (exceptions) { - case kNoThrow: SetCanThrow(false); break; - case kCanThrow: SetCanThrow(true); break; - } + SetCanThrow(exceptions == kCanThrow); } bool HNewInstance::IsStringAlloc() const { |