summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-05-17 19:52:01 +0000
committerRenato Golin <renato.golin@linaro.org>2016-05-17 19:52:01 +0000
commit38ed8021c748bf8a928a30a97f497eccf0746369 (patch)
treeb16095967140b7bdc7b393d329d0670ea5b67f29 /llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll
parent0a828aa0006e9c054c806d35b1719059c0711ae5 (diff)
downloadbcm5719-llvm-38ed8021c748bf8a928a30a97f497eccf0746369.tar.gz
bcm5719-llvm-38ed8021c748bf8a928a30a97f497eccf0746369.zip
Fix an assert in SelectionDAGBuilder when processing inline asm
When processing inline asm that contains errors, make sure we can recover gracefully by creating an UNDEF SDValue for the inline asm statement before returning from SelectionDAGBuilder::visitInlineAsm. This is necessary for consumers that don't exit on the first error that is emitted (e.g. clang) and that would assert later on. Fixes PR24071. Patch by Diana Picus. llvm-svn: 269811
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll b/llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll
index e05b09f8c64..56ec8ecb85d 100644
--- a/llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll
+++ b/llvm/test/CodeGen/PowerPC/crbit-asm-disabled.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -mcpu=pwr7 -exit-on-error -o /dev/null %s 2>&1 | FileCheck %s
+; RUN: not llc -mcpu=pwr7 -o /dev/null %s 2>&1 | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
OpenPOWER on IntegriCloud