]> granicus.if.org Git - llvm/commitdiff
[Attributor][FIX] Remove assertion wrong for on invalid IRPositions
authorJohannes Doerfert <jdoerfert@anl.gov>
Mon, 7 Oct 2019 21:48:08 +0000 (21:48 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Mon, 7 Oct 2019 21:48:08 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373972 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO/Attributor.h

index 517afe85ec4c49e43be3bd35189e7358f41cf57d..f1bba68414525b5becdbe986fcdb4b5b703d4769 100644 (file)
@@ -398,8 +398,6 @@ struct IRPosition {
 
     assert(KindOrArgNo < 0 &&
            "Expected (call site) arguments to never reach this point!");
-    assert(!isa<Argument>(getAnchorValue()) &&
-           "Expected arguments to have an associated argument position!");
     return Kind(KindOrArgNo);
   }