summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-01-24 08:32:59 +0000
committerpatrick <patrick@openbsd.org>2017-01-24 08:32:59 +0000
commit53d771aafdbe5b919f264f53cba3788e2c4cffd2 (patch)
tree7eca39498be0ff1e3a6daf583cd9ca5886bb2636 /gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
parentIn preparation of compiling our kernels with -ffreestanding, explicitly map (diff)
downloadwireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.tar.xz
wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.zip
Import LLVM 4.0.0 rc1 including clang and lld to help the current
development effort on OpenBSD/arm64.
Diffstat (limited to 'gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp')
-rw-r--r--gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp b/gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
index bceeac57ea6..dccfffdb2c1 100644
--- a/gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
+++ b/gnu/llvm/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
@@ -93,10 +93,10 @@ TEST_F(PPConditionalDirectiveRecordTest, PPRecAPI) {
SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf)));
VoidModuleLoader ModLoader;
- HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
- Target.get());
- Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
- HeaderInfo, ModLoader,
+ HeaderSearch HeaderInfo(std::make_shared<HeaderSearchOptions>(), SourceMgr,
+ Diags, LangOpts, Target.get());
+ Preprocessor PP(std::make_shared<PreprocessorOptions>(), Diags, LangOpts,
+ SourceMgr, HeaderInfo, ModLoader,
/*IILookup =*/nullptr,
/*OwnsHeaderSearch =*/false);
PP.Initialize(*Target);