summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@anl.gov>2019-08-14 21:46:28 +0000
committerJohannes Doerfert <jdoerfert@anl.gov>2019-08-14 21:46:28 +0000
commit4395b31d99577a0e753403426bca761482a58a52 (patch)
tree844c892496643d686dc1d76eb180e7c1bbd45695 /llvm/lib/Transforms
parent17b578bc758a6b27792d88b0a8adb1582985cf04 (diff)
downloadbcm5719-llvm-4395b31d99577a0e753403426bca761482a58a52.tar.gz
bcm5719-llvm-4395b31d99577a0e753403426bca761482a58a52.zip
[Attributor][NFC] Try to eliminate warnings (debug build + fall through)
llvm-svn: 368928
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/Attributor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index f60c880c8ab..5f1e81e7e52 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -319,8 +319,9 @@ IRAttributeManifest::manifestAttrs(Attributor &A, IRPosition &IRP,
case IRPosition::IRP_CALL_SITE_RETURNED:
case IRPosition::IRP_CALL_SITE_ARGUMENT:
CallSite(&IRP.getAnchorValue()).setAttributes(Attrs);
- case IRPosition::IRP_FLOAT:
+ break;
case IRPosition::IRP_INVALID:
+ case IRPosition::IRP_FLOAT:
break;
}
@@ -413,6 +414,7 @@ void IRPosition::verify() {
assert(Arg == &getAssociatedValue() && "Associated value mismatch!");
} else {
auto &CB = cast<CallBase>(*AnchorVal);
+ (void)CB;
assert(CB.arg_size() > unsigned(getArgNo()) &&
"Call site argument number mismatch!");
assert(CB.getArgOperand(getArgNo()) == &getAssociatedValue() &&
OpenPOWER on IntegriCloud