From 4395b31d99577a0e753403426bca761482a58a52 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Wed, 14 Aug 2019 21:46:28 +0000 Subject: [Attributor][NFC] Try to eliminate warnings (debug build + fall through) llvm-svn: 368928 --- llvm/lib/Transforms/IPO/Attributor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/Attributor.cpp') 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(*AnchorVal); + (void)CB; assert(CB.arg_size() > unsigned(getArgNo()) && "Call site argument number mismatch!"); assert(CB.getArgOperand(getArgNo()) == &getAssociatedValue() && -- cgit v1.2.3