diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 06:05:18 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 06:05:18 +0000 |
| commit | 3c40a28aa3dde7c5f7e1520c32e7515eda830fef (patch) | |
| tree | 1426a421a081f7d5fec9d2cfe965da56b68fa4d7 /lib/CodeGen/CGExpr.cpp | |
| parent | 530fa4fc800f2788cfe6d4113677ca631d1e801f (diff) | |
| download | clang-3c40a28aa3dde7c5f7e1520c32e7515eda830fef.tar.gz clang-3c40a28aa3dde7c5f7e1520c32e7515eda830fef.tar.bz2 clang-3c40a28aa3dde7c5f7e1520c32e7515eda830fef.tar.xz | |
Basic ODR checking for C++ modules:
If we have multiple definitions of the same entity from different modules, we
nominate the first definition which we see as being the canonical definition.
If we load a declaration from a different definition and we can't find a
corresponding declaration in the canonical definition, issue a diagnostic.
This is insufficient to prevent things from going horribly wrong in all cases
-- we might be in the middle of emitting IR for a function when we trigger some
deserialization and discover that it refers to an incoherent piece of the AST,
by which point it's probably too late to bail out -- but we'll at least produce
a diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
