From ce5f2034151d053640a8ca3dd2be5ab5af0dd510 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 24 Sep 2018 04:42:13 +0000 Subject: 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 --- llvm/test/tools/llvm-diff/anon-func.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 llvm/test/tools/llvm-diff/anon-func.ll (limited to 'llvm/test/tools/llvm-diff') 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 +} + -- cgit v1.2.3