diff options
author | 2023-07-25 12:42:58 +0100 | |
---|---|---|
committer | 2023-07-25 15:41:41 +0000 | |
commit | 358bb39bb1276d93c0fd475373aa03640109c520 (patch) | |
tree | 0b9117a16554ed40dee6b912b383ad9183de0742 /compiler/optimizing/nodes.h | |
parent | b2777b10fd9d5eb494488251b01ad6e24f870f75 (diff) |
Small cleanup in HLoadClass.
Be consistent when checking bss kind.
Test: m
Change-Id: If6f6c06d79fba8caea8dded962c20f34f553dc7f
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index dec86e30dd..9f085acdb3 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -7020,17 +7020,15 @@ class HLoadClass final : public HInstruction { bool CanCallRuntime() const { return NeedsAccessCheck() || MustGenerateClinitCheck() || - GetLoadKind() == LoadKind::kRuntimeCall || - GetLoadKind() == LoadKind::kBssEntry; + NeedsBss() || + GetLoadKind() == LoadKind::kRuntimeCall; } bool CanThrow() const override { return NeedsAccessCheck() || MustGenerateClinitCheck() || // If the class is in the boot image, the lookup in the runtime call cannot throw. - ((GetLoadKind() == LoadKind::kRuntimeCall || - GetLoadKind() == LoadKind::kBssEntry) && - !IsInBootImage()); + ((GetLoadKind() == LoadKind::kRuntimeCall || NeedsBss()) && !IsInBootImage()); } ReferenceTypeInfo GetLoadedClassRTI() { |