[PATCH] D42391: Verifier: fix bug treating debug info issue as non-debug info issue
Yaxun Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 08:13:59 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323216: Verifier: fix bug treating debug info issue as non-debug info issue (authored by yaxunl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42391?vs=130941&id=131080#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42391
Files:
llvm/trunk/lib/IR/Verifier.cpp
llvm/trunk/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll
Index: llvm/trunk/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll
===================================================================
--- llvm/trunk/test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll
+++ llvm/trunk/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(
Index: llvm/trunk/lib/IR/Verifier.cpp
===================================================================
--- llvm/trunk/lib/IR/Verifier.cpp
+++ llvm/trunk/lib/IR/Verifier.cpp
@@ -4525,8 +4525,8 @@
// The scopes for variables and !dbg attachments must agree.
DILocalVariable *Var = DII.getVariable();
DILocation *Loc = DII.getDebugLoc();
- Assert(Loc, "llvm.dbg." + Kind + " intrinsic requires a !dbg attachment",
- &DII, BB, F);
+ AssertDI(Loc, "llvm.dbg." + Kind + " intrinsic requires a !dbg attachment",
+ &DII, BB, F);
DISubprogram *VarSP = getSubprogram(Var->getRawScope());
DISubprogram *LocSP = getSubprogram(Loc->getRawScope());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42391.131080.patch
Type: text/x-patch
Size: 1136 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180123/ec4ebd1f/attachment.bin>
More information about the llvm-commits
mailing list