aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DFAPacketizer.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-08-20 20:53:05 +0000
committerZachary Turner <zturner@google.com>2014-08-20 20:53:05 +0000
commit75172a95678e79449df1375b6478b97bf4f2d21a (patch)
treea5b24cd332cb1b733b265dcf51217b596e0ff2e2 /llvm/lib/CodeGen/DFAPacketizer.cpp
parentbb38f7bdaa05ad7706e990c451248feac8be424b (diff)
downloadllvm-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