summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2019-06-05 04:18:12 +0000
committerMichael Liao <michael.hliao@gmail.com>2019-06-05 04:18:12 +0000
commitfa449a9bb27abdc43a4dbd17dc84d920f5f408d8 (patch)
treed2c69ac32110fb731059d797f8d405a000ddde91
parentc0eb8a982538c2c5db234ebc1c30f4c9b40587de (diff)
downloadbcm5719-llvm-fa449a9bb27abdc43a4dbd17dc84d920f5f408d8.tar.gz
bcm5719-llvm-fa449a9bb27abdc43a4dbd17dc84d920f5f408d8.zip
Suppress false-positive GCC -Wreturn-type warning.
llvm-svn: 362582
-rw-r--r--llvm/lib/Transforms/IPO/Attributor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 56c32235fd3..d82667be933 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud