summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-04-29 20:17:28 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-04-29 20:17:28 +0000
commita12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e (patch)
treef0f66f00e4e136fb198afbefa85db7041d5638f7 /clang
parentcd64780d186c60ecd588699bf8adfb82f638bf86 (diff)
downloadbcm5719-llvm-a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e.tar.gz
bcm5719-llvm-a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e.zip
[Windows] Fix assertion failure when passing 'nul' in input to clang.
Before this patch, if 'nul' was passed in input to clang, function getStatus() (in Path.inc) always returned an instance of file_status with field 'nFileSizeHigh' and 'nFileSizeLow' left uninitialized. This was causing the triggering of an assertion failure in MemoryBuffer.cpp due to an invalid FileSize for device 'nul'. This patch fixes the assertion failure modifying the constructors of class file_status (in llvm/Support/FileSystem.h) so that every field of the class gets initialized to zero by default. A clang test will be submitted on a separate patch. llvm-svn: 207575
Diffstat (limited to 'clang')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud