From 1188480049153a440bd4287946c7f2ea54672d8b Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 20 Mar 2015 18:34:53 +0000 Subject: [PATCH] Rewrite test/Feature/md_on_instruction.ll This test is supposed to be testing whether metadata attachments to instructions work, but it was using invalid debug info to do so. (This was causing assertion failures in the `DebugInfoFinder` with a WIP patch to be more strict about `DIDescriptor` accessors.) Rather than fix the debug info -- which is better tested elsewhere -- just test the IR feature directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232828 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/md_on_instruction.ll | 45 ++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/test/Feature/md_on_instruction.ll b/test/Feature/md_on_instruction.ll index 25fde035f69..e4f9f671170 100644 --- a/test/Feature/md_on_instruction.ll +++ b/test/Feature/md_on_instruction.ll @@ -1,27 +1,28 @@ -; RUN: llvm-as < %s | llvm-dis | grep " !dbg " | count 4 +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s + define i32 @foo() nounwind ssp { entry: - %retval = alloca i32 ; [#uses=2] - call void @llvm.dbg.func.start(metadata !0) - store i32 42, i32* %retval, !dbg !3 - br label %0, !dbg !3 + ; CHECK: %retval = alloca i32 + ; CHECK: store i32 42, i32* %retval, !md !0 + ; CHECK: br label %0, !md !1 + %retval = alloca i32 + store i32 42, i32* %retval, !md !0 + br label %0, !md !1 -;