shafik added inline comments.
================ Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:290 + return this->emitConst( + E, Ctx.getASTContext().getTypeSizeInChars(ArgType).getQuantity()); + } ---------------- I notice that `HandleSizeof` special cases `void` and function types. ================ Comment at: clang/test/AST/Interp/literals.cpp:83 + +namespace SizeOf { + constexpr int soint = sizeof(int); ---------------- Test for `void` and a function type too. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133934/new/ https://reviews.llvm.org/D133934 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits