From: Johannes Doerfert Date: Mon, 7 Oct 2019 21:48:08 +0000 (+0000) Subject: [Attributor][FIX] Remove assertion wrong for on invalid IRPositions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d04f39c40f08eb135535eec97e5bd80ad3d3d48a;p=llvm [Attributor][FIX] Remove assertion wrong for on invalid IRPositions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373972 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/IPO/Attributor.h b/include/llvm/Transforms/IPO/Attributor.h index 517afe85ec4..f1bba684145 100644 --- a/include/llvm/Transforms/IPO/Attributor.h +++ b/include/llvm/Transforms/IPO/Attributor.h @@ -398,8 +398,6 @@ struct IRPosition { assert(KindOrArgNo < 0 && "Expected (call site) arguments to never reach this point!"); - assert(!isa(getAnchorValue()) && - "Expected arguments to have an associated argument position!"); return Kind(KindOrArgNo); }