From bc5201b51c74682f23320375aacc444a28d08bc7 Mon Sep 17 00:00:00 2001 From: Taj Muhammad Khan Date: Tue, 13 May 2014 13:30:52 +0200 Subject: [PATCH] Changed to work with statement extensions --- source/pprint.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/pprint.c b/source/pprint.c index ab4b22f..c7e494f 100644 --- a/source/pprint.c +++ b/source/pprint.c @@ -312,14 +312,7 @@ int pprint_osl_body(struct cloogoptions *options, FILE *dst, stmt = stmt->next; /* Ensure it has a printable body. */ - body = NULL; - if (osl_generic_has_URI(stmt->body, OSL_URI_BODY)) { - body = stmt->body->data; - } else if (osl_generic_has_URI(stmt->body, OSL_URI_EXTBODY)) { - if (stmt->body->data != NULL) { - body = ((osl_extbody_p)(stmt->body->data))->body; - } - } + body = osl_statement_get_body(stmt); if ((body != NULL) && (body->expression != NULL) && (body->iterators != NULL)) { -- 2.11.4.GIT