summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-inline-constraint.ll
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2015-09-03 15:41:37 +0000
committerKarl Schimpf <kschimpf@google.com>2015-09-03 15:41:37 +0000
commitf04a5d597886696f085c6fdcae68c14cc571b3bf (patch)
tree7cc58063009deacdd67627a636c8172a53121e0f /llvm/test/Assembler/invalid-inline-constraint.ll
parent388fd5ae2fff69406fb8b4a2f9eb2c764cc6c80d (diff)
downloadbcm5719-llvm-f04a5d597886696f085c6fdcae68c14cc571b3bf.tar.gz
bcm5719-llvm-f04a5d597886696f085c6fdcae68c14cc571b3bf.zip
Fix SEGV in InlineAsm::ConstraintInfo::Parse.
Summary: Fixes bug 24646. Previous code was not checking if an index into a vector was valid, resulting in a SEGV. Fixed by assuming the construct can't be parsed when given this input. Reformat and add test. Differential Revision: http://reviews.llvm.org/D12539 llvm-svn: 246774
Diffstat (limited to 'llvm/test/Assembler/invalid-inline-constraint.ll')
-rw-r--r--llvm/test/Assembler/invalid-inline-constraint.llbin0 -> 314 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-inline-constraint.ll b/llvm/test/Assembler/invalid-inline-constraint.ll
new file mode 100644
index 00000000000..84b2e5c87da
--- /dev/null
+++ b/llvm/test/Assembler/invalid-inline-constraint.ll
Binary files differ
OpenPOWER on IntegriCloud