diff options
author | Eric Christopher <echristo@gmail.com> | 2013-06-26 22:44:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-06-26 22:44:57 +0000 |
commit | 8479989ebe30f8fb9e14fbd5622fe0fd51988ff6 (patch) | |
tree | d58e3bf5f9df7599e4866263f580679dba8367d4 /tools/opt/opt.cpp | |
parent | b0a9ffaeb0cb3802da3611b95d3ea7f49f03f787 (diff) | |
download | llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.gz llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.bz2 llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.xz |
Revert "Debug Info: clean up usage of Verify." as it's breaking bots.
This reverts commit r185020
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 11508de960..f642a78fc0 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -389,8 +389,8 @@ struct BreakpointPrinter : public ModulePass { for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { std::string Name; DISubprogram SP(NMD->getOperand(i)); - assert(SP.isSubprogram()); - getContextName(SP.getContext(), Name); + if (SP.Verify()) + getContextName(SP.getContext(), Name); Name = Name + SP.getDisplayName().str(); if (!Name.empty() && Processed.insert(Name)) { Out << Name << "\n"; |