]> granicus.if.org Git - clang/commit
Delay diagnosing asm constraints that require immediates until after inlining
authorBill Wendling <isanbard@gmail.com>
Tue, 6 Aug 2019 22:41:22 +0000 (22:41 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 6 Aug 2019 22:41:22 +0000 (22:41 +0000)
commit8bae6bc137b86f09c0bdef49de441bfdb7553082
tree6093e48660bf1794a053eaeb21b1771120fe1c1f
parent34e2ee80f4b66aa1db64b36feabc95aa14513fd1
Delay diagnosing asm constraints that require immediates until after inlining

Summary:
An inline asm call may result in an immediate input value after inlining.
Therefore, don't emit a diagnostic here if the input isn't an immediate.

Reviewers: joerg, eli.friedman, rsmith

Subscribers: asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, s.egerton, krytarowski, mgorny, riccibruno, eraman, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
lib/Sema/SemaStmtAsm.cpp
test/CodeGen/pr41027.c [new file with mode: 0644]
test/Sema/inline-asm-validate-riscv.c
test/Sema/inline-asm-validate-x86.c
test/Sema/pr41027.c [deleted file]