Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
e9b27e01
Commit
e9b27e01
authored
9 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
fix for match.call crash with VarArgNode
parent
c2d735b7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/RASTUtils.java
+8
-2
8 additions, 2 deletions
...fle.r.nodes/src/com/oracle/truffle/r/nodes/RASTUtils.java
with
8 additions
and
2 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/RASTUtils.java
+
8
−
2
View file @
e9b27e01
...
...
@@ -160,8 +160,14 @@ public class RASTUtils {
RLanguage
l
=
(
RLanguage
)
value
;
return
(
RNode
)
NodeUtil
.
cloneNode
((
Node
)
l
.
getRep
());
}
else
if
(
value
instanceof
RPromise
)
{
// TODO: flatten nested promises?
return
NodeUtil
.
cloneNode
(((
RNode
)
((
RPromise
)
value
).
getRep
()).
unwrap
());
RPromise
promise
=
(
RPromise
)
value
;
RNode
promiseRep
=
((
RNode
)
((
RPromise
)
value
).
getRep
()).
unwrap
();
if
(
promiseRep
instanceof
VarArgNode
)
{
VarArgNode
varArgNode
=
(
VarArgNode
)
promiseRep
;
RPromise
varArgPromise
=
varArgNode
.
executeNonEvaluated
((
VirtualFrame
)
promise
.
getFrame
());
return
createNodeForValue
(
varArgPromise
);
}
return
NodeUtil
.
cloneNode
(
promiseRep
);
}
else
{
return
ConstantNode
.
create
(
value
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment