diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-02-04 00:27:13 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-02-04 00:27:13 +0000 |
commit | 96a36017f769c759f226a4b710d6e4f907ea0ef0 (patch) | |
tree | 40f0dd4cea708a9ca25605a85200f1bc70f93223 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | bc18d6ab055f45948c8f7d37fa545959f9514ca0 (diff) | |
download | llvm-96a36017f769c759f226a4b710d6e4f907ea0ef0.zip llvm-96a36017f769c759f226a4b710d6e4f907ea0ef0.tar.gz llvm-96a36017f769c759f226a4b710d6e4f907ea0ef0.tar.bz2 |
[inlineasm] Fix an incorrect warning about register constraint and modifier.
Previously, when the following piece of code was compiled, clang would
incorrectly warn that the size of "wide_two" does not match register size
specified by the constraint and modifier":
long wide_two = two;
asm ("%w0 %1" : "+r" (one), "+r"(wide_two));
This was caused by a miscalculation of ConstraintIdx in Sema::ActOnGCCAsmStmt.
This commit fixes PR21270 and rdar://problem/18668354.
llvm-svn: 228089
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions