diff options
author | Devang Patel <dpatel@apple.com> | 2010-05-07 22:04:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-05-07 22:04:20 +0000 |
commit | 02f0dbd97a9bc01528aa12c2f260d928683ab411 (patch) | |
tree | 3b9c5d8152d60e01d68483b27dc74f61b118804f /lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 6e5ce287b0e53c264af0ba37169ad964e19b5bb7 (diff) |
Verify variable directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 6107c8cb7a..ae6c248ee1 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -349,7 +349,7 @@ bool FastISel::SelectCall(const User *I) { 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; |