cc1as: Don't crash when CIE is requested and no DWARF version is specified.
authorAdrian Prantl <aprantl@apple.com>
Tue, 19 Apr 2016 20:31:19 +0000 (20:31 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 19 Apr 2016 20:31:19 +0000 (20:31 +0000)
commitae39ccc49f8d5a9451353a89958183c4bfa6e6b8
treecfb082728b61cf7ab52ddd8bf759f2f014b48a6f
parent04ccbd40533450fad13f027ed53eab813fe50991
cc1as: Don't crash when CIE is requested and no DWARF version is specified.
This patch changes the default DWARF version for cc1as from invalid 0 to 2,
which should be the lowest common denominator on all platforms.

rdar://problem/24735813

llvm-svn: 266814
clang/test/Driver/as-dwarf-cie.s [new file with mode: 0644]
clang/tools/driver/cc1as_main.cpp