aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
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/lib/Frontend/CompilerInvocation.cpp
parentcd64780d186c60ecd588699bf8adfb82f638bf86 (diff)
downloadllvm-a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e.zip
llvm-a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e.tar.gz
llvm-a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e.tar.bz2
[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/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions