summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_function_detect_recursion.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-09-20 18:08:11 -0700
committerKenneth Graunke <[email protected]>2012-04-02 14:15:43 -0700
commit82065fa20ee3f2880a070f1f4f75509b910cedde (patch)
treebceb87a9745496accbec6e71a96be2873231ea0a /src/glsl/ir_function_detect_recursion.cpp
parentd884f60861f270cdcf7d9d47765efcf1e1de30b6 (diff)
glsl: Remove ir_call::get_callee() and set_callee().
Previously, set_callee() performed some assertions about the type of the ir_call; protecting the bare pointer ensured these checks would be run. However, ir_call no longer has a type, so the getter and setter methods don't actually do anything useful. Remove them in favor of accessing callee directly, as is done with most other fields in our IR. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_function_detect_recursion.cpp')
-rw-r--r--src/glsl/ir_function_detect_recursion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_function_detect_recursion.cpp b/src/glsl/ir_function_detect_recursion.cpp
index 890bc455f44..0a5e647cd88 100644
--- a/src/glsl/ir_function_detect_recursion.cpp
+++ b/src/glsl/ir_function_detect_recursion.cpp
@@ -217,7 +217,7 @@ public:
if (this->current == NULL)
return visit_continue;
- function *const target = this->get_function(call->get_callee());
+ function *const target = this->get_function(call->callee);
/* Create a link from the caller to the callee.
*/