[Modules] Do not emit relocation error when -fno-validate-pch is set
authorYuka Takahashi <yukatkh@gmail.com>
Wed, 1 Aug 2018 09:50:02 +0000 (09:50 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Wed, 1 Aug 2018 09:50:02 +0000 (09:50 +0000)
commitd8baec2f467382227e8e904c1398fe3dee5e38c6
treefe2d89384fbd6bab7325edcd04575b490fc960af
parent8aca1c8db9f349eb5e6d39ce59c5260b9549670f
[Modules] Do not emit relocation error when -fno-validate-pch is set

Summary:
Clang emits error when implicit modules was relocated from the
first build directory. However this was biting our usecase where we copy
the contents of build directory to another directory in order to
distribute.

Differential Revision: https://reviews.llvm.org/D49852

llvm-svn: 338503
clang/lib/Serialization/ASTReader.cpp
clang/test/Modules/resolution-change.m