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)
commitee55fac1d44d5ad114cab57b174e16d5eadb43ba
tree216026633bd79f19e6b42b73aa366e51bb646af6
parente7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8
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.

llvm-svn: 234245
clang/lib/CodeGen/CGDebugInfo.cpp