[clang] [clang][CodeGen] Fix ConstantInt::get for i1 in EmitScalarPrePostIncDec (PR #175152)
Björn Pettersson via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 02:57:59 PST 2026
bjope wrote:
There are a couple of other situations in EmitScalarPrePostIncDec (and also in ScalarExprEmitter::EmitIncDecConsiderOverflowBehavior) when we create a 1/-1 ConstantInt based on isInc.
I've only touched one of those 4 cases in this patch. Not sure if there could be similar problems for the other 3 cases. But I think those cases are for signed types, or when having done promotions. So I focused on the situation that I could reproduce.
https://github.com/llvm/llvm-project/pull/175152
More information about the cfe-commits
mailing list