aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86InstrInfo.td
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-31 01:26:24 +0000
committerEric Christopher <echristo@gmail.com>2013-07-31 01:26:24 +0000
commit1a54c57cf654e001c078c7064123d30e6c03e349 (patch)
treebb8adf9aa998ab8c4716064fc40f20dea42277b6 /lib/Target/X86/X86InstrInfo.td
parent782638aa0d18f7db7970eb0d8dded84fe7f0c450 (diff)
downloadexternal_llvm-1a54c57cf654e001c078c7064123d30e6c03e349.zip
external_llvm-1a54c57cf654e001c078c7064123d30e6c03e349.tar.gz
external_llvm-1a54c57cf654e001c078c7064123d30e6c03e349.tar.bz2
Fix crashing on invalid inline asm with matching constraints.
For a testcase like the following: typedef unsigned long uint64_t; typedef struct { uint64_t lo; uint64_t hi; } blob128_t; void add_128_to_128(const blob128_t *in, blob128_t *res) { asm ("PAND %1, %0" : "+Q"(*res) : "Q"(*in)); } where we'll fail to allocate the register for the output constraint, our matching input constraint will not find a register to match, and could try to search past the end of the current operands array. On the idea that we'd like to attempt to keep compilation going to find more errors in the module, change the error cases when we're visiting inline asm IR to return immediately and avoid trying to create a node in the DAG. This leaves us with only a single error message per inline asm instruction, but allows us to safely keep going in the general case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.td')
0 files changed, 0 insertions, 0 deletions