r196839 - Fix return of empty range in MSAsmStmt::children

David Blaikie dblaikie at gmail.com
Mon Dec 9 15:44:58 PST 2013


On Mon, Dec 9, 2013 at 3:34 PM, Reid Kleckner <reid at kleckner.net> wrote:
> Author: rnk
> Date: Mon Dec  9 17:34:56 2013
> New Revision: 196839
>
> URL: http://llvm.org/viewvc/llvm-project?rev=196839&view=rev
> Log:
> Fix return of empty range in MSAsmStmt::children

Test case?

>
> Modified:
>     cfe/trunk/include/clang/AST/Stmt.h
>
> Modified: cfe/trunk/include/clang/AST/Stmt.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=196839&r1=196838&r2=196839&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/AST/Stmt.h (original)
> +++ cfe/trunk/include/clang/AST/Stmt.h Mon Dec  9 17:34:56 2013
> @@ -1767,7 +1767,7 @@ public:
>    }
>
>    child_range children() {
> -    return child_range(&Exprs[0], &Exprs[0]);
> +    return child_range(&Exprs[0], &Exprs[NumInputs + NumOutputs]);
>    }
>  };
>
>
>
> _______________________________________________
> 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