Commit 0a5a9f6
Add ResetAllOptionOccurrences before creating CompilerInvocation
After this change:
llvm/llvm-project@7bdad08
To be more precise, in this line:
https://github.com/llvm/llvm-project/blob/d2a710ea784eea43c63e3831224de6355f1e4a6f/clang/lib/Frontend/CompilerInvocation.cpp#L3587
We have a problem during second compilation of user kernel via opencl-clang in the same process. When we hit this place two times - it will abort the compilation, because we are trying to assign the same flag twice which is wrong.
message error:
clang (LLVM option parsing): for the --pgo-warn-misexpect option: may only occur zero or one times!1 parent 1f73e0b commit 0a5a9f6
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
| |||
0 commit comments