aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-09-05 20:24:27 +0000
committerBen Langmuir <blangmuir@apple.com>2014-09-05 20:24:27 +0000
commitbb1c918ec85f24457a4aeb47a08683df34063916 (patch)
treec6ca2d5f22be9df55f512ed6f0f7555ab825d101 /llvm/lib/Object/Object.cpp
parent7ec2cb2fda0d3fbc88ff6b1e9bc98cbfc67fb29c (diff)
downloadllvm-bb1c918ec85f24457a4aeb47a08683df34063916.zip
llvm-bb1c918ec85f24457a4aeb47a08683df34063916.tar.gz
llvm-bb1c918ec85f24457a4aeb47a08683df34063916.tar.bz2
Move the initialization of VAListTagName after InitializeSema()
This innocuous statement to get the identifier info for __va_list_tag was causing an assertion failure: NextIsPrevious() && "decl became non-canonical unexpectedly" if the __va_list_tag identifier was found in a PCH in some circumstances, because it was looked up before the ASTReader had a Sema object to use to find existing decls to merge with. We could possibly move getting the identifier info even later, or make it lazy if we wanted to, but this seemed like the minimal change. Now why a PCH would have this identifier in the first place is a bit mysterious. This seems to be related to the global module index in some way, because when the test case is built without the global module index it will not emit an identifier for __va_list_tag into the PCH, but with the global module index it does. llvm-svn: 217275
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions