]> granicus.if.org Git - clang/commit
Driver: fix an assertion with `-print-prog-name=`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 1 May 2018 18:40:42 +0000 (18:40 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 1 May 2018 18:40:42 +0000 (18:40 +0000)
commit0b70ac50d620cf9a7626328e4badffa6d277971b
treea1285f070c3220a359cee363883a29d492d7db13
parent8bd607bb21f1bf77102498fb50ec03851ad375a6
Driver: fix an assertion with `-print-prog-name=`

Fix an assertion when -print-prog-name= is invoked without parameter.
Returns an empty string.

Patch by Christian Bruel!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331296 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/print-empty-prog-name.c [new file with mode: 0644]