Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index e323e0d210b3e8bc3280555cb612db07ea5b143d..bb81960decced120c666cdd92f3a925fd7a3c4d6 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -4015,8 +4015,12 @@ void LCodeGen::DoCallWithDescriptor(LCallWithDescriptor* instr) { |
generator.BeforeCall(__ CallSize(code, RelocInfo::CODE_TARGET)); |
PlatformInterfaceDescriptor* call_descriptor = |
instr->descriptor().platform_specific_descriptor(); |
- __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al, |
- call_descriptor->storage_mode()); |
+ if (call_descriptor != NULL) { |
+ __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al, |
+ call_descriptor->storage_mode()); |
+ } else { |
+ __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al); |
+ } |
} else { |
DCHECK(instr->target()->IsRegister()); |
Register target = ToRegister(instr->target()); |