projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9c5dc
)
Fix options parse infinite loop bug.
author
Yang Rong
<rong.r.yang@intel.com>
Mon, 1 Jul 2013 02:06:17 +0000
(10:06 +0800)
committer
Zhigang Gong
<zhigang.gong@linux.intel.com>
Mon, 1 Jul 2013 08:50:38 +0000
(16:50 +0800)
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/program.cpp
patch
|
blob
|
history
diff --git
a/backend/src/backend/program.cpp
b/backend/src/backend/program.cpp
index
e41e5b6
..
2a4feb9
100644
(file)
--- 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");