forked from OSchip/llvm-project
IR: Document horrible abuse of loose DIDescriptor, NFC
I'll circle back and fix this somehow; for now I just don't want to forget about it. llvm-svn: 228608
This commit is contained in:
parent
43e53ccc0d
commit
950d8dfb04
|
@ -691,6 +691,8 @@ class DILexicalBlockFile : public DIScope {
|
|||
public:
|
||||
explicit DILexicalBlockFile(const MDNode *N = nullptr) : DIScope(N) {}
|
||||
DIScope getContext() const {
|
||||
// FIXME: This logic is horrible. getScope() returns a DILexicalBlock, but
|
||||
// then we check if it's a subprogram? WHAT?!?
|
||||
if (getScope().isSubprogram())
|
||||
return getScope();
|
||||
return getScope().getContext();
|
||||
|
|
Loading…
Reference in New Issue