From: Eli Friedman Date: Sun, 3 May 2009 06:04:26 +0000 (+0000) Subject: Fix silly mistake that was breaking tests. Sorry for any inconvenience. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=586d6a81428da2d1ce70bcb98df29d749361cbf3;p=clang Fix silly mistake that was breaking tests. Sorry for any inconvenience. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70664 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index b451c23923..be1faace9c 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -134,9 +134,11 @@ Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall) { case Builtin::BI__builtin_object_size: if (SemaBuiltinObjectSize(TheCall)) return ExprError(); + return move(TheCallResult); case Builtin::BI__builtin_longjmp: if (SemaBuiltinLongjmp(TheCall)) return ExprError(); + return move(TheCallResult); } // FIXME: This mechanism should be abstracted to be less fragile and @@ -427,7 +429,7 @@ bool Sema::SemaBuiltinObjectSize(CallExpr *TheCall) { return false; } -/// SemaBuiltinObjectSize - Handle __builtin_longjmp(void *env[5], int val). +/// SemaBuiltinLongjmp - Handle __builtin_longjmp(void *env[5], int val). /// This checks that val is a constant 1. bool Sema::SemaBuiltinLongjmp(CallExpr *TheCall) { Expr *Arg = TheCall->getArg(1);