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 | 2ae3397536d6a9b858c50a119941c815d643f7dd (patch) | |
tree | bdcdde85f847ef96af0b631107ff90e2bd473871 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 028449325b8c58f1c24daf63a6f00c1bdcf57cb4 (diff) | |
download | bcm5719-llvm-2ae3397536d6a9b858c50a119941c815d643f7dd.tar.gz bcm5719-llvm-2ae3397536d6a9b858c50a119941c815d643f7dd.zip |
Verify variable directly.
llvm-svn: 103305
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 6107c8cb7a6..ae6c248ee17 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/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; |