diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-01-23 16:11:15 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-01-23 16:11:15 +0000 |
| commit | d0820433b16c3d8d3a044fcec66e957e883e6a4e (patch) | |
| tree | 820619e47098fad6c00da62c1f8f380300386668 /llvm/test | |
| parent | e642231bfc6446c2811a31c1a3a9a93bf71ff4ac (diff) | |
| download | bcm5719-llvm-d0820433b16c3d8d3a044fcec66e957e883e6a4e.tar.gz bcm5719-llvm-d0820433b16c3d8d3a044fcec66e957e883e6a4e.zip | |
Verifier: fix bug treating debug info issue as non-debug info issue
Normally when llvm-as sees only debug info errors in LLVM assembly, it simply
drops the debug info and outputs a valid LLVM bitcode and returns 0.
There is a bug in LLVM verifier which incorrectly treats a debug info error
as non-debug info error, which causes llvm-as returns 1 even though llvm-as
can drop the invalid debug info and outputs a valid LLVM bitcode.
This patch fixes that.
Differential Revision: https://reviews.llvm.org/D42391
llvm-svn: 323216
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll b/llvm/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll index c434d446ce4..3f4ce5e7b08 100644 --- a/llvm/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll +++ b/llvm/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s +; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s define void @foo() { entry: call void @llvm.dbg.value( |

