aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-26 00:51:02 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-26 00:51:02 +0000
commit32adc8bd6f05d1e26cc221102e48609da2c446ba (patch)
treeb0671a30612c51e549bd0e43bcab619170788dc7 /lib/AST/DeclBase.cpp
parentc1143e598d6f2d8da045888298a9893a84e678df (diff)
When de-serializing a type that is supposed to be canonical, call
getCanonicalType() to make sure that the type we got back is actually canonical. This is the case for most types, which always build a canonical type when given canonical components. However, some types that involve expressions in their canonicalization (e.g., array types with dependent sizes) don't always build canonical types from canonical components, because there is no such thing as a "canonical" expression. Therefore, we do this extra mapping to ensure that the canonical types we store are actually canonical. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
0 files changed, 0 insertions, 0 deletions