Same problem as D10045 / PR23517, slightly different solution.
For inline assembly immediate constraints, we currently always use EmitScalarExpr, instead of directly emitting the constant. When the overflow sanitizer is enabled, this generates overflow intrinsics instead of constants.
Instead, emit a constant for constraints that either require an immediate (e.g. 'I' on X86), or only accepts constants (immediate or symbolic; i.e., don't accept registers or memory, I think).
(re-send on cfe-commits of D10254)
Should this cause an error to be emitted on release builds too?