From: Michael Liao Date: Wed, 5 Jun 2019 04:18:12 +0000 (+0000) Subject: Suppress false-positive GCC -Wreturn-type warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d5e129235ad1dc8d106da56736853b1df15301b;p=llvm Suppress false-positive GCC -Wreturn-type warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362582 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index 56c32235fd3..d82667be933 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -104,6 +104,7 @@ static unsigned getAttrIndex(AbstractAttribute::ManifestPosition MP, case AbstractAttribute::MP_RETURNED: return AttributeList::ReturnIndex; } + llvm_unreachable("Unknown manifest position!"); } /// Return true if \p New is equal or worse than \p Old.