diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:04:18 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:04:18 +0000 |
| commit | ee55fac1d44d5ad114cab57b174e16d5eadb43ba (patch) | |
| tree | 216026633bd79f19e6b42b73aa366e51bb646af6 /clang/lib/CodeGen | |
| parent | e7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8 (diff) | |
| download | bcm5719-llvm-ee55fac1d44d5ad114cab57b174e16d5eadb43ba.tar.gz bcm5719-llvm-ee55fac1d44d5ad114cab57b174e16d5eadb43ba.zip | |
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
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 811486cf3ab..6e9533c7e7a 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -129,7 +129,7 @@ void CGDebugInfo::setLocation(SourceLocation Loc) { if (Scope.isLexicalBlockFile()) { llvm::DILexicalBlockFile LBF = llvm::DILexicalBlockFile(Scope); llvm::DIDescriptor D = DBuilder.createLexicalBlockFile( - LBF.getScope(), getOrCreateFile(CurLoc)); + LBF.getContext(), getOrCreateFile(CurLoc)); llvm::MDNode *N = D; LexicalBlockStack.pop_back(); LexicalBlockStack.emplace_back(N); |

