From ee78bffd35e662fb1ce199250a3efb0052abe468 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Wed, 14 Aug 2019 21:46:28 +0000 Subject: [PATCH] [Attributor][NFC] Try to eliminate warnings (debug build + fall through) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368928 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/Attributor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index f60c880c8ab..5f1e81e7e52 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/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() && -- 2.40.0