From 5d5e129235ad1dc8d106da56736853b1df15301b Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Wed, 5 Jun 2019 04:18:12 +0000 Subject: [PATCH] Suppress false-positive GCC -Wreturn-type warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362582 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/Attributor.cpp | 1 + 1 file changed, 1 insertion(+) 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. -- 2.50.1