From 5e5068a003731dd22a29495ef4401e5816ef9146 Mon Sep 17 00:00:00 2001
From: Lukas Stadler <lukas.stadler@oracle.com>
Date: Tue, 20 Jun 2017 17:21:27 +0200
Subject: [PATCH] small fix in RInstrumentation

---
 .../truffle/r/nodes/instrumentation/RInstrumentation.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/instrumentation/RInstrumentation.java b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/instrumentation/RInstrumentation.java
index 11255b7cc0..d9fae439a7 100644
--- a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/instrumentation/RInstrumentation.java
+++ b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/instrumentation/RInstrumentation.java
@@ -54,7 +54,7 @@ public class RInstrumentation {
     }
 
     public static SourceSection getSourceSection(RFunction func) {
-        return getFunctionDefinitionNode(func).getSourceSection();
+        return func.getRootNode().getSourceSection();
     }
 
     /**
-- 
GitLab