================
@@ -956,8 +1005,12 @@ bool SemaX86::CheckBuiltinFunctionCall(const TargetInfo 
&TI, unsigned BuiltinID,
   // template-generated or macro-generated dead code to potentially have 
out-of-
   // range values. These need to code generate, but don't need to necessarily
   // make any sense. We use a warning that defaults to an error.
-  return SemaRef.BuiltinConstantArgRange(TheCall, i, l, u,
-                                         /*RangeIsError*/ false);
+  if (SemaRef.BuiltinConstantArgRange(TheCall, i, l, u,
+                                      /*RangeIsError*/ false))
+    return true;
+
+  // If the intrinsic has a VUNPACKB immediate, make sure the encoding is 
valid.
+  return CheckBuiltinVUnpackBImm(BuiltinID, TheCall);
----------------
e-kud wrote:

My bad. Github was showing a wrong revision.

https://github.com/llvm/llvm-project/pull/206888
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to