commit | 02f0dbd97a9bc01528aa12c2f260d928683ab411 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri May 07 22:04:20 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri May 07 22:04:20 2010 +0000 |
tree | 3b9c5d8152d60e01d68483b27dc74f61b118804f | |
parent | 6e5ce287b0e53c264af0ba37169ad964e19b5bb7 [diff] [blame] |
Verify variable directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103305 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 6107c8c..ae6c248 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -349,7 +349,7 @@ default: break; case Intrinsic::dbg_declare: { const DbgDeclareInst *DI = cast<DbgDeclareInst>(I); - if (!DIDescriptor::ValidDebugInfo(DI->getVariable(), CodeGenOpt::None) || + if (!DIVariable(DI->getVariable()).Verify() || !MF.getMMI().hasDebugInfo()) return true;