aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2014-11-26 10:19:32 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2014-11-26 10:19:32 +0000
commit05200e3b1929ce1d6f34b30beffac805b5a41b5e (patch)
tree34fa7822cfc7036a552f69f38acedcf30c68b49c /clang/unittests/Format/FormatTestJava.cpp
parentee5772faaab01fb5328b9a53ece3c791b06210ac (diff)
downloadllvm-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