nickdesaulniers added inline comments.
================ Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1131-1132 + case CK_NullToPointer: { + if (llvm::Constant *C = Visit(subExpr, destType)) + if (C->isNullValue()) + return CGM.EmitNullConstant(destType); ---------------- FWIW, I would have thought these might be unnecessary, but we do trip 2 tests without these guards IIRC. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156175/new/ https://reviews.llvm.org/D156175 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits