[PATCH] D52973: Add type_info predefined decl
Matt Asplund via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 7 21:01:23 PDT 2018
mwasplund updated this revision to Diff 168606.
Repository:
rC Clang
https://reviews.llvm.org/D52973
Files:
lib/Sema/SemaDecl.cpp
Index: lib/Sema/SemaDecl.cpp
===================================================================
--- lib/Sema/SemaDecl.cpp
+++ lib/Sema/SemaDecl.cpp
@@ -5235,7 +5235,7 @@
DeclarationName Name,
SourceLocation Loc, bool IsTemplateId) {
DeclContext *Cur = CurContext;
- while (Cur->isTransparentContext() || isa<CapturedDecl>(Cur))
+ while (isa<LinkageSpecDecl>(Cur) || isa<CapturedDecl>(Cur))
Cur = Cur->getParent();
// If the user provided a superfluous scope specifier that refers back to the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52973.168606.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181008/32650f24/attachment.bin>
More information about the cfe-commits
mailing list