summaryrefslogtreecommitdiff
path: root/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-27 00:03:39 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-27 00:03:39 +0000
commit27618fb7f6737d24da06aed8afe190545b4e0a80 (patch)
tree574e44fbabe6783aeeef434a6f388aa2d5b0aed4 /lib/Basic/FileSystemStatCache.cpp
parent6f83a9e0dcff8f63f19c3c7ba14656d75fcee250 (diff)
downloadclang-27618fb7f6737d24da06aed8afe190545b4e0a80.tar.gz
clang-27618fb7f6737d24da06aed8afe190545b4e0a80.tar.bz2
clang-27618fb7f6737d24da06aed8afe190545b4e0a80.tar.xz
PR18962: Fix "Unable to find record layout information for type"
Clang is using llvm::StructType::isOpaque() as a way of signaling if we've finished record type conversion in CodeGenTypes::isRecordLayoutComplete(). However, Clang was setting the body of the type before it finished laying out the type as a base type. Laying out the %class.C.base LLVM type attempts to convert more types, eventually recursively attempting to layout 'C' again, at which point we would say that layout was complete, even though we were still in the middle of it. By not setting the body, we correctly signal that layout is not complete, and things work as expected. At some point, it might be worth refactoring this to avoid looking at the LLVM IR types under construction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions