diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-06-27 16:37:27 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-06-27 16:37:27 +0000 |
commit | 6666074876eff651e25bd1cd3cfa0848b26f7c28 (patch) | |
tree | 661dd0f01b6895218c3f6fd04258d3d4f7a7d38e /clang/lib/Basic/SourceManager.cpp | |
parent | 637f6cceeed31dbbcf441b5dcd71ad4f9606cde4 (diff) | |
download | llvm-6666074876eff651e25bd1cd3cfa0848b26f7c28.zip llvm-6666074876eff651e25bd1cd3cfa0848b26f7c28.tar.gz llvm-6666074876eff651e25bd1cd3cfa0848b26f7c28.tar.bz2 |
Fix a bug in my previous patch by restoring the behavior that the fatal
error handler is only registered once.
To avoid the use of std::call_once (the obvious way to do this) I've
wrapped everything up into a managed static and done the work in
a constructor. Silly, but it should be effective.
Some out-of-tree libclang users reported this to me, and I've asked them
to put together a test case which exhibits this behavior, but I wanted
to fix things ASAP since the nature of the fix is straight forward.
llvm-svn: 211905
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions