Skip to content

Commit bc7493e

Browse files
mergennachinfacebook-github-bot
authored andcommitted
Comply llama2 runner with gcc 11.4
Summary: This seems like a simple change so that it can compile with gcc 11.4 Differential Revision: D56320381
1 parent 944dd4c commit bc7493e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/module/module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Module::Module(
5151
std::unique_ptr<EventTracer> event_tracer)
5252
: data_loader_(std::move(data_loader)),
5353
memory_allocator_(
54-
std::move(memory_allocator)
55-
?: std::make_unique<util::MallocMemoryAllocator>()),
54+
memory_allocator ? std::move(memory_allocator)
55+
: std::make_unique<util::MallocMemoryAllocator>()),
5656
event_tracer_(std::move(event_tracer)) {
5757
runtime_init();
5858
}

0 commit comments

Comments
 (0)