various cleanups. Use IgnoreParenCasts instead of inlined versions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45382 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaUtil.h b/Sema/SemaUtil.h
index 2932862..b167346 100644
--- a/Sema/SemaUtil.h
+++ b/Sema/SemaUtil.h
@@ -38,10 +38,8 @@
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.