]> granicus.if.org Git - clang/commit
DebugInfo: Use DILexicalBlockFile::getContext() over getScope()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 22:04:18 +0000 (22:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 22:04:18 +0000 (22:04 +0000)
commitadca9604f182d96f3acf6fc58dfc77d23ebd6625
tree20419862710b293f5f515eb5880467bd1bbc4af2
parentbfab8535c000d4b12f07b2d567b6408c862b1cd2
DebugInfo: Use DILexicalBlockFile::getContext() over getScope()

`getScope()` passes the scope back through a `DILexicalBlock` even
though the underlying pointer may be an incompatible `MDSubprogram`.
Just use `getContext()` directly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234245 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp