From: Duncan P. N. Exon Smith Date: Mon, 6 Apr 2015 21:46:46 +0000 (+0000) Subject: Reapply "DebugInfo: Loosen DILexicalBlock constructor" X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=23e0384808bf16208ba52e590f6e6260c5f0f05b;p=oota-llvm.git Reapply "DebugInfo: Loosen DILexicalBlock constructor" This reverts commit r234225, reapplying r234222 in spirit. This time, just include what the commit message actually describes: loosen the `DILexicalBlock` constructor to require a `MDLexicalBlockBase`, since that's what `DILexicalBlock` is wrapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234241 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index 2fa68982ac8..c2040587633 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -704,7 +704,7 @@ public: class DILexicalBlock : public DIScope { public: explicit DILexicalBlock(const MDNode *N = nullptr) : DIScope(N) {} - DILexicalBlock(const MDLexicalBlock *N) : DIScope(N) {} + DILexicalBlock(const MDLexicalBlockBase *N) : DIScope(N) {} MDLexicalBlockBase *get() const { return cast_or_null(DIDescriptor::get());