Last active
August 29, 2015 14:02
-
-
Save jnthn/c885ee5263406d17e3d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/6model/reprs/MVMMultiCache.c b/src/6model/reprs/MVMMultiCache.c | |
index 94d0943..bc93e3b 100644 | |
--- a/src/6model/reprs/MVMMultiCache.c | |
+++ b/src/6model/reprs/MVMMultiCache.c | |
@@ -148,7 +148,7 @@ MVMObject * MVM_multi_cache_add(MVMThreadContext *tc, MVMObject *cache_obj, MVMO | |
MVMObject *arg = MVM_args_get_pos_obj(tc, apc, i, 1).arg.o; | |
if (arg) { | |
MVMContainerSpec const *contspec = STABLE(arg)->container_spec; | |
- if (contspec) { | |
+ if (contspec && IS_CONCRETE(arg)) { | |
if (contspec->fetch_never_invokes) { | |
MVMRegister r; | |
contspec->fetch(tc, arg, &r); | |
@@ -231,7 +231,7 @@ MVMObject * MVM_multi_cache_find(MVMThreadContext *tc, MVMObject *cache_obj, MVM | |
MVMObject *arg = MVM_args_get_pos_obj(tc, apc, i, 1).arg.o; | |
if (arg) { | |
MVMContainerSpec const *contspec = STABLE(arg)->container_spec; | |
- if (contspec) { | |
+ if (contspec && IS_CONCRETE(arg)) { | |
if (contspec->fetch_never_invokes) { | |
MVMRegister r; | |
contspec->fetch(tc, arg, &r); | |
@@ -309,7 +309,7 @@ MVMObject * MVM_multi_cache_find_callsite_args(MVMThreadContext *tc, MVMObject * | |
MVMObject *arg = args[i].o; | |
if (arg) { | |
MVMContainerSpec const *contspec = STABLE(arg)->container_spec; | |
- if (contspec) { | |
+ if (contspec && IS_CONCRETE(arg)) { | |
if (contspec->fetch_never_invokes) { | |
MVMRegister r; | |
contspec->fetch(tc, arg, &r); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment