[PATCH] DebugInfo: hoist definition into global context when needed

David Majnemer david.majnemer at gmail.com
Tue Feb 24 15:24:20 PST 2015


REPOSITORY
  rL LLVM

================
Comment at: lib/CodeGen/CGDebugInfo.cpp:2381-2382
@@ +2380,4 @@
+                                                   : VD->getDeclContext();
+  while (DC->isRecord())
+    DC = DC->getParent();
+  VDContext = getContextDescriptor(dyn_cast<Decl>(DC));
----------------
Shouldn't this be morally equivalent to `DC->getEnclosingNamespaceContext()`?

http://reviews.llvm.org/D7872

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list