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)
commite5f3cf824f0f91ac575e06f7bad105695df301ec
treecacf5fab834baf0273c4e738f87e8d52652782f8
parente8e95b5b019a328fbebfaf20ed43009e195cccda
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!

llvm-svn: 331296
clang/lib/Driver/Driver.cpp
clang/test/Driver/print-empty-prog-name.c [new file with mode: 0644]