From 6e0af6ef491616b430a419b08ae3f2b6137a8881 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao <ztuowen@gmail.com> Date: Tue, 11 Oct 2016 17:49:01 -0600 Subject: fixes --- src/frontend/clang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/clang.cpp') diff --git a/src/frontend/clang.cpp b/src/frontend/clang.cpp index e7b74ed..9324ba8 100644 --- a/src/frontend/clang.cpp +++ b/src/frontend/clang.cpp @@ -378,7 +378,7 @@ chillAST_NodeList* ConvertIfStmt(IfStmt *clangIS) { chillAST_NodeList* ConvertUnaryOperator(UnaryOperator *clangUO) { const char *op = unops[clangUO->getOpcode()].c_str(); - bool pre = clangUO->isPrefix(); + bool pre = !clangUO->isPostfix(); chillAST_Node *sub = unwrap(ConvertGenericClangAST(clangUO->getSubExpr())); chillAST_UnaryOperator *chillUO = new chillAST_UnaryOperator(op, pre, sub); -- cgit v1.2.3-70-g09d2