mygitljf wrote:

oh, It is closely related, but I don't think it is an exact duplicate. #201623 
handles the poison/UB immarg case like `2 >> 32`, while this PR handles valid 
non-`int` constant expressions like `sizeof`/`ULL` that can still produce 
non-`i32` LLVM constants. From what I can tell, `EmitScalarOrConstFoldImmArg` 
still preserves the expression's integer type, so it may not cover the 
`sizeof`/`ULL` case. 

https://github.com/llvm/llvm-project/pull/202111
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to