summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/clang.cpp2
1 files changed, 1 insertions, 1 deletions
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);