summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
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/lib/CodeGen/PeepholeOptimizer.cpp
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/lib/CodeGen/PeepholeOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud