[llvm] r347249 - Add missing stream operator for Polynomial class to fix debug builds.
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 19 11:04:05 PST 2018
Thanks, i was just about to commit the exact same patch.
On Mon, Nov 19, 2018 at 10:00 PM Simon Pilgrim via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
> Author: rksimon
> Date: Mon Nov 19 10:57:49 2018
> New Revision: 347249
>
> URL: http://llvm.org/viewvc/llvm-project?rev=347249&view=rev
> Log:
> Add missing stream operator for Polynomial class to fix debug builds.
>
> Modified:
> llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
>
> Modified: llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp?rev=347249&r1=347248&r2=347249&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp (original)
> +++ llvm/trunk/lib/CodeGen/InterleavedLoadCombinePass.cpp Mon Nov 19 10:57:49 2018
> @@ -619,6 +619,13 @@ private:
> }
> };
>
> +#ifndef NDEBUG
> +static raw_ostream &operator<<(raw_ostream &OS, const Polynomial &S) {
> + S.print(OS);
> + return OS;
> +}
> +#endif
> +
> /// VectorInfo stores abstract the following information for each vector
> /// element:
> ///
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list