aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sema/SemaUtil.h')
-rw-r--r--Sema/SemaUtil.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Sema/SemaUtil.h b/Sema/SemaUtil.h
index 2932862e91..b167346fb4 100644
--- a/Sema/SemaUtil.h
+++ b/Sema/SemaUtil.h
@@ -38,10 +38,8 @@ static inline Expr* IgnoreParenCasts(Expr* E) {
else if (ImplicitCastExpr* P = dyn_cast<ImplicitCastExpr>(E))
E = P->getSubExpr();
else
- break;
+ return E;
}
-
- return E;
}
/// Utility method to determine if a CallExpr is a call to a builtin.