[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-05-01 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r331296 Repository: rC Clang https://reviews.llvm.org/D45814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-04-30 Thread Christian Bruel via Phabricator via cfe-commits
chrib added a comment. In https://reviews.llvm.org/D45814#1081203, @compnerd wrote: > Do you have commit access or do you need someone to commit this on your > behalf? can you commit it for me please ? thanks. Repository: rC Clang https://reviews.llvm.org/D45814 ___

[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-04-27 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. Do you have commit access or do you need someone to commit this on your behalf? Repository: rC Clang https://reviews.llvm.org/D45814 ___ c

[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-04-27 Thread Christian Bruel via Phabricator via cfe-commits
chrib added a comment. Hi Saleem, Thanks for your review. I have amended the patch to avoid checking the name on the common path. About your second comment, I'm not sure we have to fix -print-file-name= for an equivalent problem since in case of empty parameter, we do a concatenation with the

[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-04-27 Thread Christian Bruel via Phabricator via cfe-commits
chrib updated this revision to Diff 144322. chrib added a comment. Move the non-null name check out of GetProgramPath and add a test case. Assume that we trust the callers to check for non null ProgramName. Repository: rC Clang https://reviews.llvm.org/D45814 Files: lib/Driver/Driver.cpp

[PATCH] D45814: Fix an assertion when -print-prog-name=

2018-04-26 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I'm torn on this. The other `-print` options will perform the validation implicitly at the higher level before calling the inner functions. It is certainly reasonable to support that, but, for the common path, this check seems unnecessary (and this function is used e

[PATCH] D45814: Fix an assertion when -print-prog-name= is invoked without parameter. Returns an empty string.

2018-04-19 Thread Christian Bruel via Phabricator via cfe-commits
chrib created this revision. Herald added a subscriber: cfe-commits. Fix an assertion when -print-prog-name= Repository: rC Clang https://reviews.llvm.org/D45814 Files: lib/Driver/Driver.cpp Index: lib/Driver/Driver.cpp ===