aaron.ballman added a comment. This is missing test coverage (possibly around integer promotion behavior as well).
================ Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1525 + return true; + APSInt V = APSInt(IL->getValue(), /*IsUnsigned=*/false); + return this->emitConst(-V, E); ---------------- Are you sure about `IsUnsigned`? http://eel.is/c++draft/expr.unary.op#8 reads to me like `-0ULL` will remain unsigned as a result. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137399/new/ https://reviews.llvm.org/D137399 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits