diff options
| author | Hans Wennborg <hans@hanshq.net> | 2019-03-06 10:26:19 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2019-03-06 10:26:19 +0000 |
| commit | dd1ea8abb791d274ae574a478937aa0e77cc405f (patch) | |
| tree | b1245fa18b95148a743b90909794e1b763b8c701 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 2a0f2c5ef3330846149598220467d9f3c6e8b99c (diff) | |
| download | bcm5719-llvm-dd1ea8abb791d274ae574a478937aa0e77cc405f.tar.gz bcm5719-llvm-dd1ea8abb791d274ae574a478937aa0e77cc405f.zip | |
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
llvm-svn: 355491
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions

