[clang] Use IsVolatile=true and RequiresNullTerminator=false for PCMs
authorMichael Spencer <bigcheesegs@gmail.com>
Wed, 10 Jun 2020 20:37:03 +0000 (14:37 -0600)
committerMichael Spencer <bigcheesegs@gmail.com>
Wed, 10 Jun 2020 20:37:30 +0000 (14:37 -0600)
commit1727c6aab34012f0cefc8a3f29ede5f1f718c832
treea04f4624afa81504b0257dc12f57dcec906d57e5
parent4e813bbdf335626a741398314709a535ef52fe8e
[clang] Use IsVolatile=true and RequiresNullTerminator=false for PCMs

This change got missed while upstreaming
https://reviews.llvm.org/D77772. This is the part of that change that
actually passes the correct arguments when opening a PCM.

The test didn't catch this because it starts at the
`MemoryBuffer::getOpenFile` level. It's not really possible to test
`ModuleManager::addModule` itself to verify how the file was opened.
clang/lib/Serialization/ModuleManager.cpp