HomePhabricator

Merging r355491:

Description

Merging r355491:

r355491 | hans | 2019-03-06 11:26:19 +0100 (Wed, 06 Mar 2019) | 9 lines

Inline asm constraints: allow ICE-like pointers for the "n" constraint (PR40890)

Apparently GCC allows this, and there's code relying on it (see bug).

The idea is to allow expression that would have been allowed if they
were cast to int. So I based the code on how such a cast would be done
(the CK_PointerToIntegral case in IntExprEvaluator::VisitCastExpr()).

Differential Revision: https://reviews.llvm.org/D58821

Details

Committed
hansMar 8 2019, 1:16 AM
Differential Revision
D58821: Inline asm constraints: allow ICE-like pointers for the "n" constraint (PR40890)
Parents
rL355673: Merging r354937:
Branches
Unknown
Tags
Unknown