For PR1284:
Implement the "part_set" intrinsic.
llvm-svn: 35938
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 89a08b0..d09f157 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -1028,13 +1028,14 @@
if (GotBits < 16 || GotBits % 16 != 0)
CheckFailed("Intrinsic requires even byte width argument", F);
/* FALL THROUGH */
+ case Intrinsic::part_set:
case Intrinsic::part_select:
if (ArgNo == 1) {
unsigned ResultBits =
cast<IntegerType>(FTy->getReturnType())->getBitWidth();
if (GotBits != ResultBits)
- CheckFailed("Intrinsic requires parameter and result bit "
- "widths to match", F);
+ CheckFailed("Intrinsic requires the bit widths of the first "
+ "parameter and the result to match", F);
}
break;
}