From 9db8eed2b2e2d03494396724873e179f3f090d7d 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 --- llvm/include/llvm/Intrinsics.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Intrinsics.h b/llvm/include/llvm/Intrinsics.h index 09a79c2e6790..c3503889e702 100644 --- a/llvm/include/llvm/Intrinsics.h +++ b/llvm/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); }