summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-07-30 22:44:18 -0700
committerJan Kotas <jkotas@microsoft.com>2015-07-30 22:44:18 -0700
commitac53e056df86db99a4c353b5cf1e0a9612900e62 (patch)
tree491f5e8533bd535bb25736d3ccdd38a8ac1d8a3a
parente46ef4ff1d51b09a8c86872fa900dbebd9c56990 (diff)
parent96e41d6ddf435905848c4e032d1b453bb8907cd7 (diff)
downloadcoreclr-ac53e056df86db99a4c353b5cf1e0a9612900e62.tar.gz
coreclr-ac53e056df86db99a4c353b5cf1e0a9612900e62.tar.bz2
coreclr-ac53e056df86db99a4c353b5cf1e0a9612900e62.zip
Merge pull request #1319 from kangaroo/aarch64-hfa-fix
[aarch64] Correct the checking of return class type to check against CORINFO_TYPE_FLOAT
-rw-r--r--src/vm/interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/interpreter.cpp b/src/vm/interpreter.cpp
index fac99ecca6..5ee4c7aa3b 100644
--- a/src/vm/interpreter.cpp
+++ b/src/vm/interpreter.cpp
@@ -1063,7 +1063,7 @@ CorJitResult Interpreter::GenerateInterpreterStub(CEEInfo* comp,
// for instance a VT with two float fields will have the same size as a VT with 1 double field. (ARM64TODO: Verify it)
// It works on ARM because the overlapping layout of the floating point registers
// but it won't work on ARM64.
- cHFAVars = (CorInfoTypeIsFloatingPoint(comp->getHFAType(info->args.retTypeClass))) ? HFARetTypeSize/sizeof(float) : HFARetTypeSize/sizeof(double);
+ cHFAVars = (comp->getHFAType(info->args.retTypeClass) == CORINFO_TYPE_FLOAT) ? HFARetTypeSize/sizeof(float) : HFARetTypeSize/sizeof(double);
#endif
}