aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2016-05-02 21:52:57 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2016-05-02 21:52:57 +0000
commit3ba6535096a4a1abd57f7813183ac8fa0bccfc39 (patch)
tree3c2977aee66c44f544d759f263df565f65766502 /llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp
parent64f7a995b0f3b213e353486c5b6c6132f9bb124d (diff)
downloadllvm-3ba6535096a4a1abd57f7813183ac8fa0bccfc39.zip
llvm-3ba6535096a4a1abd57f7813183ac8fa0bccfc39.tar.gz
llvm-3ba6535096a4a1abd57f7813183ac8fa0bccfc39.tar.bz2
[CodeGenObjCXX] Don't rematerialize default arguments of function
parameters in the body of a block. This fixes a bug where clang would materialize the default argument inside the body of a block instead of passing the value via the block descriptor. For example, in the code below, foo1 would always print 42 regardless of the value of argument "a" passed to foo1. void foo1(const int a = 42 ) { auto block = ^{ printf("%d\n", a); }; block(); } rdar://problem/24449235 llvm-svn: 268314
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp')
0 files changed, 0 insertions, 0 deletions