]> granicus.if.org Git - clang/commit
Fix crash if a submodule overrides one of its own macros, and add support for
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Mar 2014 03:16:27 +0000 (03:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Mar 2014 03:16:27 +0000 (03:16 +0000)
commit0b2b59a5f34124adc0ac08e04278eb247cfd819c
tree7589f7c03540934f4dcad3840af9050c5fda78ad
parentfb63bc2026d6887c82a77d7144b8f94d751b5047
Fix crash if a submodule overrides one of its own macros, and add support for
submodule macro overriding within the same top-level module (necessary for the
testcase to be remotely reasonable). Incidentally reduces the number of libc++
testsuite regressions with modules enabled from 7 to 6.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203063 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/macros_top.h
test/Modules/Inputs/macros_top_b.h [new file with mode: 0644]
test/Modules/Inputs/macros_top_c.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/macros2.c