[PATCH] Inherit dll attributes to static locals

Saleem Abdulrasool abdulras at fb.com
Fri Jun 13 11:15:23 PDT 2014


It would be nice to have similar tests for the Itanium ABI, but I suspect that you are less interested in that.

================
Comment at: lib/CodeGen/MicrosoftCXXABI.cpp:1429
@@ -1430,1 +1428,3 @@
+    // Create the guard variable with a zero-initializer.  Just absorb linkage,
+    // visibility and dll storage clsas from the guarded variable.
     GI->Guard =
----------------
clsas -> class.

================
Comment at: test/CodeGenCXX/dllexport.cpp:274
@@ -258,1 +273,3 @@
+  return x++;
+};
 
----------------
It really would be nice to split this file up at some point.

http://reviews.llvm.org/D4136






More information about the cfe-commits mailing list