diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-11-26 10:19:32 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-11-26 10:19:32 +0000 |
commit | 05200e3b1929ce1d6f34b30beffac805b5a41b5e (patch) | |
tree | 34fa7822cfc7036a552f69f38acedcf30c68b49c /clang/unittests/Format/FormatTestJava.cpp | |
parent | ee5772faaab01fb5328b9a53ece3c791b06210ac (diff) | |
download | llvm-05200e3b1929ce1d6f34b30beffac805b5a41b5e.zip llvm-05200e3b1929ce1d6f34b30beffac805b5a41b5e.tar.gz llvm-05200e3b1929ce1d6f34b30beffac805b5a41b5e.tar.bz2 |
Re-order the base classes to prevent a crash in Linux.
In the initialization list of IOHandlerConfirm, *this is basically casting
IOHandlerConfirm to its base IOHandlerDelegate and passing it to constructor of
IOHandlerEditline which uses it and crashes as constructor of IOHandlerDelegate
is still not called. Re-ordering the base classes makes sure that constructor of
IOHandlerDelegate runs first.
It would be good to have a test case for this case too.
llvm-svn: 222816
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions