[llvm] r373972 - [Attributor][FIX] Remove assertion wrong for on invalid IRPositions
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 14:48:08 PDT 2019
Author: jdoerfert
Date: Mon Oct 7 14:48:08 2019
New Revision: 373972
URL: http://llvm.org/viewvc/llvm-project?rev=373972&view=rev
Log:
[Attributor][FIX] Remove assertion wrong for on invalid IRPositions
Modified:
llvm/trunk/include/llvm/Transforms/IPO/Attributor.h
Modified: llvm/trunk/include/llvm/Transforms/IPO/Attributor.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO/Attributor.h?rev=373972&r1=373971&r2=373972&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO/Attributor.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO/Attributor.h Mon Oct 7 14:48:08 2019
@@ -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);
}
More information about the llvm-commits
mailing list