diff options
author | Chris Lattner <sabre@nondot.org> | 2012-05-27 19:17:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-05-27 19:17:16 +0000 |
commit | 9db8eed2b2e2d03494396724873e179f3f090d7d (patch) | |
tree | 18e6571162db10d4cb85630723e347016e14ada7 | |
parent | 4d358b55fa82e937dd3acd099c0c009473c82c57 (diff) | |
download | bcm5719-llvm-9db8eed2b2e2d03494396724873e179f3f090d7d.tar.gz bcm5719-llvm-9db8eed2b2e2d03494396724873e179f3f090d7d.zip |
generalize this to allow any argument.
llvm-svn: 157542
-rw-r--r-- | llvm/include/llvm/Intrinsics.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Intrinsics.h b/llvm/include/llvm/Intrinsics.h index 09a79c2e679..c3503889e70 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); } |