Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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!
- Loading branch information