From 4a8e703e4d6d9e18c16960273058628e5386b146 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 21 Sep 2017 23:14:55 +0000 Subject: [PATCH] Fix a bug in a historic bitcode testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313940 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/DIExpression-deref.ll | 6 +++--- test/Bitcode/DIExpression-deref.ll.bc | Bin 1012 -> 1072 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Bitcode/DIExpression-deref.ll b/test/Bitcode/DIExpression-deref.ll index a03d6016523..e5d32014523 100644 --- a/test/Bitcode/DIExpression-deref.ll +++ b/test/Bitcode/DIExpression-deref.ll @@ -4,15 +4,15 @@ !llvm.module.flags = !{!20, !21} !0 = distinct !DIGlobalVariable(name: "g", scope: !1, file: !2, line: 1, type: !5, isLocal: false, isDefinition: true) -!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang (llvm/trunk 288154)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !4) +!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang (llvm/trunk 300520)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !4) !2 = !DIFile(filename: "a.c", directory: "/") !3 = !{} !4 = !{!10, !11, !12, !13} !5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) ; DW_OP_deref should be moved to the back of the expression. ; -; CHECK: !DIExpression(DW_OP_plus_uconst, 0, DW_OP_deref, DW_OP_LLVM_fragment, 8, 32) -!6 = !DIExpression(DW_OP_deref, DW_OP_plus, 0, DW_OP_LLVM_fragment, 8, 32) +; CHECK: !DIExpression(DW_OP_plus_uconst, 0, DW_OP_deref, DW_OP_LLVM_fragment, 8, 8) +!6 = !DIExpression(DW_OP_deref, DW_OP_plus, 0, DW_OP_LLVM_fragment, 8, 8) ; CHECK: !DIExpression(DW_OP_plus_uconst, 0, DW_OP_deref) !7 = !DIExpression(DW_OP_deref, DW_OP_plus, 0) ; CHECK: !DIExpression(DW_OP_plus_uconst, 1, DW_OP_deref) diff --git a/test/Bitcode/DIExpression-deref.ll.bc b/test/Bitcode/DIExpression-deref.ll.bc index 5297bf9f17b494f5ecb08ad65f1c169303efc621..443cb549930e31b91b9de36631e7ac4fa1f6437f 100644 GIT binary patch delta 246 zcmeyuzJX(c3j03>1_o{>#fjRjPCp-{)^2|N_S2u#HRmtqfA5x9)*hd;ZSUVj)1QBt zZs04w|Kw9~!^k6tpFaI*^S5mKiPXxQZ<02vnsJE8axgHQU}9w0cBX6hZ#!)1QC-a{I2*^rxwt zyU(6uV%+%Y9wVdEvJ22%SgU-d076rCO z!&C!?()L-{jPausQ`mp8CiMHI|%w%u`f@&{%a H7LWn}mg-Qf -- 2.50.0