From: Florian Hahn Date: Wed, 26 Jul 2017 16:07:51 +0000 (+0000) Subject: [Hexagon] Mark raise_relocation_error as NORETURN. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc1a13623969b71734a6ae3c8a7a3428d60eef03;p=llvm [Hexagon] Mark raise_relocation_error as NORETURN. Summary: This silences a couple of implicit fallthrough warnings with GCC 7.1 in this file. Reviewers: colinl, kparzysz Reviewed By: kparzysz Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35889 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309129 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp index 50f00d1aaea..32021eee3d1 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp @@ -159,6 +159,7 @@ void HexagonMCCodeEmitter::EncodeSingleInstruction( } namespace { +LLVM_ATTRIBUTE_NORETURN void raise_relocation_error(unsigned bits, unsigned kind) { std::string Text; {