[llvm] r362582 - Suppress false-positive GCC -Wreturn-type warning.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 21:18:13 PDT 2019
Author: hliao
Date: Tue Jun 4 21:18:12 2019
New Revision: 362582
URL: http://llvm.org/viewvc/llvm-project?rev=362582&view=rev
Log:
Suppress false-positive GCC -Wreturn-type warning.
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=362582&r1=362581&r2=362582&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Tue Jun 4 21:18:12 2019
@@ -104,6 +104,7 @@ static unsigned getAttrIndex(AbstractAtt
case AbstractAttribute::MP_RETURNED:
return AttributeList::ReturnIndex;
}
+ llvm_unreachable("Unknown manifest position!");
}
/// Return true if \p New is equal or worse than \p Old.
More information about the llvm-commits
mailing list