From d04f39c40f08eb135535eec97e5bd80ad3d3d48a Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 7 Oct 2019 21:48:08 +0000 Subject: [PATCH] [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 --- include/llvm/Transforms/IPO/Attributor.h | 2 -- 1 file changed, 2 deletions(-) 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); } -- 2.40.0