diff options
| author | 2016-01-26 20:22:42 +0000 | |
|---|---|---|
| committer | 2016-01-26 20:22:42 +0000 | |
| commit | 1e953c3795f700a573fabfda81493ce22f143922 (patch) | |
| tree | b70d6753393873f89e6d808f5c417b0d1687e342 /compiler/optimizing/nodes.cc | |
| parent | 7ccb63fe85e78dea6c849cf4c6eeba9823d9efd0 (diff) | |
| parent | 09e8d5ffe52c738c6a74984b1cbc7ad4bc8f5e2c (diff) | |
Merge "Some minor simplifications in code and tests."
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 adf8734214..92f758d61d 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2221,10 +2221,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 { |