[PATCH] Fix IRGen for referencing a static local before emitting its decl

Richard Smith richard at metafoo.co.uk
Tue Oct 7 17:12:53 PDT 2014


LGTM, subject to handling of `ObjCMethodDecl`.

================
Comment at: lib/CodeGen/CGDecl.cpp:231
@@ +230,3 @@
+    GD = GlobalDecl(FD);
+  if (GD.getDecl())
+    (void)GetAddrOfGlobal(GD);
----------------
Should we handle `ObjCMethodDecl`s here?

http://reviews.llvm.org/D4787






More information about the cfe-commits mailing list