diff options
author | Zachary Turner <zturner@google.com> | 2014-08-20 20:53:05 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-08-20 20:53:05 +0000 |
commit | 75172a95678e79449df1375b6478b97bf4f2d21a (patch) | |
tree | a5b24cd332cb1b733b265dcf51217b596e0ff2e2 /llvm/lib/CodeGen/DFAPacketizer.cpp | |
parent | bb38f7bdaa05ad7706e990c451248feac8be424b (diff) | |
download | llvm-75172a95678e79449df1375b6478b97bf4f2d21a.zip llvm-75172a95678e79449df1375b6478b97bf4f2d21a.tar.gz llvm-75172a95678e79449df1375b6478b97bf4f2d21a.tar.bz2 |
Revert "Avoid global contstructors and place static variables
inside classes as static local variables and remove the static
ivars. Subclasses should use the accessor functions."
This change moved global statics to function local statics, but
forgot to make the locals static in the function, breaking all
platforms. Furthermore, MSVC doesn't support thread-safe function
local statics, so any use of a function local static on non
primitive types is undefined behavior on MSVC.
Reverting due to the fact that it's broken on all platforms, but
would like to have a discussion about the thread-safety issue
before it goes back in.
llvm-svn: 216123
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions