[CodeGen] Consider tied operands when adjusting inline asm operands.
authorEli Friedman <efriedma@quicinc.com>
Thu, 14 Mar 2019 19:46:51 +0000 (19:46 +0000)
committerEli Friedman <efriedma@quicinc.com>
Thu, 14 Mar 2019 19:46:51 +0000 (19:46 +0000)
commit4af1c265025e003d25ac419b38d736d9bbf68b3c
tree81fecad099139b3aa60e4f9b6fba2883dfed5421
parent38f07b1966a9ca8c2969c40dca30ed05ccb78b67
[CodeGen] Consider tied operands when adjusting inline asm operands.

The constraint "0" in the following asm did not consider the its
relationship with "=y" when try to replace the type of the operands.

asm ("nop" : "=y"(Mu8_1 ) : "0"(Mu8_0 ));

Patch by Xiang Zhang.

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

llvm-svn: 356196
clang/lib/CodeGen/CGStmt.cpp
clang/test/CodeGen/asm-inout.c