================
@@ -160,6 +160,13 @@ class ExprPointeeResolve {
if (CastType == SubExprType)
return resolveExpr(ICE->getSubExpr());
}
+ if (kind == CK_BitCast) {
+ const QualType DestType = ICE->getType();
+ const QualType SubExprType = ICE->getSubExpr()->getType();
+ if (DestType->isPointerType() && SubExprType->isPointerType() &&
+ !DestType->getPointeeType().isConstQualified())
----------------
zwuis wrote:
Are these conditions necessary? (Looking at the function name `resolveExpr`)
https://github.com/llvm/llvm-project/pull/206515
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits