]> granicus.if.org Git - llvm/commitdiff
[Attributor][NFC] Try to eliminate warnings (debug build + fall through)
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 14 Aug 2019 21:46:28 +0000 (21:46 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 14 Aug 2019 21:46:28 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368928 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Attributor.cpp

index f60c880c8ab55eab76fdca66bd8fb6d435f24eea..5f1e81e7e5262262acfbd3386a98c004c82c5426 100644 (file)
@@ -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() &&