diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-24 04:42:13 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-24 04:42:13 +0000 |
commit | ce5f2034151d053640a8ca3dd2be5ab5af0dd510 (patch) | |
tree | bd0f6170c1a443259c03c343ffe2827e0e24fb35 /llvm/test | |
parent | 5bef27e808ed0eb2f2510b467cfe2d3eb4d7ec8a (diff) | |
download | bcm5719-llvm-ce5f2034151d053640a8ca3dd2be5ab5af0dd510.tar.gz bcm5719-llvm-ce5f2034151d053640a8ca3dd2be5ab5af0dd510.zip |
llvm-diff: Fix crash on anonymous functions
Not sure what the correct behavior is for this.
Skip them and report how many there were.
llvm-svn: 342857
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/tools/llvm-diff/anon-func.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-diff/anon-func.ll b/llvm/test/tools/llvm-diff/anon-func.ll new file mode 100644 index 00000000000..a17d1d3015e --- /dev/null +++ b/llvm/test/tools/llvm-diff/anon-func.ll @@ -0,0 +1,8 @@ +; RUN: llvm-diff %s %s 2>&1 | FileCheck %s + +; CHECK: not comparing 1 anonymous functions in the left module and 1 in the right module + +define void @0() { + ret void +} + |