aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp')
-rw-r--r--llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp b/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp
index 9007eb3..93e2efe 100644
--- a/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp
+++ b/llvm/utils/llvm-test-mustache-spec/llvm-test-mustache-spec.cpp
@@ -212,7 +212,10 @@ static void runTest(StringRef InputFile) {
for (Value V : *TestArray) {
auto TestData =
ExitOnErr(TestData::createTestData(V.getAsObject(), InputFile));
- Template T(TestData.TemplateStr);
+ BumpPtrAllocator Allocator;
+ StringSaver Saver(Allocator);
+ MustacheContext Ctx(Allocator, Saver);
+ Template T(TestData.TemplateStr, Ctx);
registerPartials(TestData.Partials, T);
std::string ActualStr;