generalize this to allow any argument.
authorChris Lattner <sabre@nondot.org>
Sun, 27 May 2012 19:17:16 +0000 (19:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 May 2012 19:17:16 +0000 (19:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157542 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.h

index 09a79c2e6790a3370ba2b50c5a70e2a2445319ab..c3503889e7024936bbf0673ad42e23d9ce46320b 100644 (file)
@@ -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);
     }