[cfe-commits] r147664 - in /cfe/trunk/lib: AST/Expr.cpp CodeGen/CGExprAgg.cpp CodeGen/CGExprComplex.cpp CodeGen/CGExprScalar.cpp Driver/Tools.cpp Serialization/ASTReaderDecl.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Jan 6 12:46:31 PST 2012
On Fri, Jan 6, 2012 at 9:44 AM, Jakub Staszak <kubastaszak at gmail.com> wrote:
> Author: kuba
> Date: Fri Jan 6 11:44:30 2012
> New Revision: 147664
>
> URL: http://llvm.org/viewvc/llvm-project?rev=147664&view=rev
> Log:
> Silence GCC warnings.
Reverted in r147681. Please run "make check-all" before committing changes...
-Eli
> Modified:
> cfe/trunk/lib/AST/Expr.cpp
> cfe/trunk/lib/CodeGen/CGExprAgg.cpp
> cfe/trunk/lib/CodeGen/CGExprComplex.cpp
> cfe/trunk/lib/CodeGen/CGExprScalar.cpp
> cfe/trunk/lib/Driver/Tools.cpp
> cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
>
> Modified: cfe/trunk/lib/AST/Expr.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/AST/Expr.cpp (original)
> +++ cfe/trunk/lib/AST/Expr.cpp Fri Jan 6 11:44:30 2012
> @@ -490,8 +490,8 @@
> return V.convertToDouble();
> }
>
> -int StringLiteral::mapCharByteWidth(TargetInfo const &target,StringKind k) {
> - int CharByteWidth;
> +int StringLiteral::mapCharByteWidth(TargetInfo const &target, StringKind k) {
> + int CharByteWidth = 0;
> switch(k) {
> case Ascii:
> case UTF8:
>
> Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Fri Jan 6 11:44:30 2012
> @@ -469,7 +469,7 @@
> llvm::BasicBlock *ContBlock = CGF.createBasicBlock("cond.end");
>
> // Bind the common expression if necessary.
> - CodeGenFunction::OpaqueValueMapping binding(CGF, E);
> + CodeGenFunction::OpaqueValueMapping(CGF, E);
>
> CodeGenFunction::ConditionalEvaluation eval(CGF);
> CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
>
> Modified: cfe/trunk/lib/CodeGen/CGExprComplex.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprComplex.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGExprComplex.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGExprComplex.cpp Fri Jan 6 11:44:30 2012
> @@ -680,7 +680,7 @@
> llvm::BasicBlock *ContBlock = CGF.createBasicBlock("cond.end");
>
> // Bind the common expression if necessary.
> - CodeGenFunction::OpaqueValueMapping binding(CGF, E);
> + CodeGenFunction::OpaqueValueMapping(CGF, E);
>
> CodeGenFunction::ConditionalEvaluation eval(CGF);
> CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
>
> Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Jan 6 11:44:30 2012
> @@ -2483,7 +2483,7 @@
> TestAndClearIgnoreResultAssign();
>
> // Bind the common expression if necessary.
> - CodeGenFunction::OpaqueValueMapping binding(CGF, E);
> + CodeGenFunction::OpaqueValueMapping(CGF, E);
>
> Expr *condExpr = E->getCond();
> Expr *lhsExpr = E->getTrueExpr();
>
> Modified: cfe/trunk/lib/Driver/Tools.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Driver/Tools.cpp (original)
> +++ cfe/trunk/lib/Driver/Tools.cpp Fri Jan 6 11:44:30 2012
> @@ -737,7 +737,7 @@
> const Driver &D = getToolChain().getDriver();
>
> StringRef ArchName;
> - const char *CPUName;
> + const char *CPUName = 0;
>
> // Set target cpu and architecture.
> if (Arg *A = Args.getLastArg(options::OPT_mcpu_EQ)) {
>
> Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=147664&r1=147663&r2=147664&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
> +++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Fri Jan 6 11:44:30 2012
> @@ -1226,7 +1226,7 @@
> RedeclKind Kind = (RedeclKind)Record[Idx++];
>
> // Determine the first declaration ID.
> - DeclID FirstDeclID;
> + DeclID FirstDeclID = 0;
> switch (Kind) {
> case FirstDeclaration: {
> FirstDeclID = ThisDeclID;
> @@ -1481,7 +1481,7 @@
> enum RedeclKind { FirstDeclaration = 0, FirstInFile, PointsToPrevious };
> RedeclKind Kind = (RedeclKind)Record[Idx++];
>
> - DeclID FirstDeclID;
> + DeclID FirstDeclID = 0;
> switch (Kind) {
> case FirstDeclaration:
> FirstDeclID = ThisDeclID;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list