From 66230fbd9c5e480a2ac6cbc462dd0c041bbbba0c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 May 2012 19:17:16 +0000 Subject: [PATCH] generalize this to allow any argument. llvm-svn: 157542 --- include/llvm/Intrinsics.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/llvm/Intrinsics.h b/include/llvm/Intrinsics.h index 09a79c2e679..c3503889e70 100644 --- a/include/llvm/Intrinsics.h +++ b/include/llvm/Intrinsics.h @@ -100,11 +100,13 @@ namespace Intrinsic { AK_AnyPointer }; unsigned getArgumentNumber() const { - assert(Kind == Argument); + assert(Kind == Argument || Kind == ExtendVecArgument || + Kind == TruncVecArgument); return Argument_Info >> 2; } ArgKind getArgumentKind() const { - assert(Kind == Argument); + assert(Kind == Argument || Kind == ExtendVecArgument || + Kind == TruncVecArgument); return (ArgKind)(Argument_Info&3); }