diff options
author | Adam Nemet <anemet@apple.com> | 2017-10-12 23:56:54 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-10-12 23:56:54 +0000 |
commit | 7b1faaacbe7ec223c512e4c14488a0ac4b1d971b (patch) | |
tree | ed363f5765346d909e5eea1a860288939f468484 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 01104aee1a3e74e7ecddcfed9f1edfb4e2e99c25 (diff) | |
download | bcm5719-llvm-7b1faaacbe7ec223c512e4c14488a0ac4b1d971b.tar.gz bcm5719-llvm-7b1faaacbe7ec223c512e4c14488a0ac4b1d971b.zip |
Handle/assert on DK_Remark
We don't generate remarks during inline assembly parsing so no need to handle
these for now.
llvm-svn: 315643
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 7f9c3771f14..6ca69d63cdc 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -433,6 +433,8 @@ void BackendConsumer::InlineAsmDiagHandler2(const llvm::SMDiagnostic &D, case llvm::SourceMgr::DK_Note: DiagID = diag::note_fe_inline_asm; break; + case llvm::SourceMgr::DK_Remark: + llvm_unreachable("remarks unexpected"); } // If this problem has clang-level source location information, report the // issue in the source with a note showing the instantiated @@ -919,6 +921,8 @@ static void BitcodeInlineAsmDiagHandler(const llvm::SMDiagnostic &SM, case llvm::SourceMgr::DK_Note: DiagID = diag::note_fe_inline_asm; break; + case llvm::SourceMgr::DK_Remark: + llvm_unreachable("remarks unexpected"); } Diags->Report(DiagID).AddString("cannot compile inline asm"); |