diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-18 04:28:29 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-18 04:28:29 +0000 |
commit | bfdfb14a8f5c9223c233742b8afe444510897d9e (patch) | |
tree | ead9795e27fd03b1f4022d335aafb4188e807cf9 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 867930aadf98b5cd07dffd5f4de09a9dd592701d (diff) | |
download | llvm-bfdfb14a8f5c9223c233742b8afe444510897d9e.zip llvm-bfdfb14a8f5c9223c233742b8afe444510897d9e.tar.gz llvm-bfdfb14a8f5c9223c233742b8afe444510897d9e.tar.bz2 |
ARM: prevent crash on ELF directives on COFF
Certain directives are unsupported on Windows (some of which could/should be
supported). We would not diagnose the use but rather crash during the emission
as we try to access the Target Streamer. Add an assertion to prevent creating a
NULL reference (which is not permitted under C++) as well as a test to ensure
that we can diagnose the disabled directives.
llvm-svn: 218014
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions