[Beignet] [PATCH] Fix options parse infinite loop bug.
Zhigang Gong
zhigang.gong at linux.intel.com
Mon Jul 1 01:35:41 PDT 2013
Pushed, thanks.
On Mon, Jul 01, 2013 at 10:06:17AM +0800, Yang Rong wrote:
>
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
> backend/src/backend/program.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
> index e41e5b6..2a4feb9 100644
> --- a/backend/src/backend/program.cpp
> +++ b/backend/src/backend/program.cpp
> @@ -141,12 +141,12 @@ namespace gbe {
> while (end != std::string::npos) {
> end = options.find(' ', start);
> std::string str = options.substr(start, end - start);
> + start = end + 1;
> if(str.size() == 0)
> continue;
> if(str == "-cl-opt-disable") bOpt = false;
> useless.push_back(str);
> args.push_back(str.c_str());
> - start = end + 1;
> }
>
> args.push_back("-emit-llvm");
> --
> 1.7.10.4
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list