Skip to content

Commit c4b0dfc

Browse files
authored
[Clang] Fix a non-effective assertion (#81083)
`PTy` here is literally `FTy->getParamType(i)`, which makes this assertion not work as expected.
1 parent 06774d6 commit c4b0dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5908,7 +5908,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
59085908
}
59095909
}
59105910

5911-
assert(PTy->canLosslesslyBitCastTo(FTy->getParamType(i)) &&
5911+
assert(ArgValue->getType()->canLosslesslyBitCastTo(PTy) &&
59125912
"Must be able to losslessly bit cast to param");
59135913
// Cast vector type (e.g., v256i32) to x86_amx, this only happen
59145914
// in amx intrinsics.

0 commit comments

Comments
 (0)