diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-13 01:02:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-13 01:02:39 +0000 |
commit | 56f349400c5932a196509c0480ff6f99a9a0b48f (patch) | |
tree | e0a9cfe9edc02203c6644377b5280099287285ea /Sema/SemaChecking.cpp | |
parent | 754607e7cff2d902d9af8b771409449fb2f8d2bf (diff) |
Move IgnoreParenCasts to be a method on Expr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaChecking.cpp')
-rw-r--r-- | Sema/SemaChecking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sema/SemaChecking.cpp b/Sema/SemaChecking.cpp index 76363c9dc0..1dfb145db8 100644 --- a/Sema/SemaChecking.cpp +++ b/Sema/SemaChecking.cpp @@ -88,7 +88,7 @@ Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall) { /// CheckBuiltinCFStringArgument - Checks that the argument to the builtin /// CFString constructor is correct bool Sema::CheckBuiltinCFStringArgument(Expr* Arg) { - Arg = IgnoreParenCasts(Arg); + Arg = Arg->IgnoreParenCasts(); StringLiteral *Literal = dyn_cast<StringLiteral>(Arg); @@ -267,7 +267,7 @@ Sema::CheckPrintfArguments(CallExpr *TheCall, bool HasVAListArg, return; } - Expr *OrigFormatExpr = IgnoreParenCasts(TheCall->getArg(format_idx)); + Expr *OrigFormatExpr = TheCall->getArg(format_idx)->IgnoreParenCasts(); // CHECK: format string is not a string literal. // @@ -527,7 +527,7 @@ static DeclRefExpr* EvalAddr(Expr* E); void Sema::CheckReturnStackAddr(Expr *RetValExp, QualType lhsType, SourceLocation ReturnLoc) { - + // Perform checking for returned stack addresses. if (lhsType->isPointerType()) { if (DeclRefExpr *DR = EvalAddr(RetValExp)) |