Skip to content

Commit 74dba6e

Browse files
mergennachinfacebook-github-bot
authored andcommitted
Comply llama2 runner with gcc 11.4 (#3140)
Summary: Pull Request resolved: #3140 This seems like a simple change so that it can compile with gcc 11.4 bypass-github-export-checks bypass-github-pytorch-ci-checks bypass-github-executorch-ci-checks Reviewed By: digantdesai Differential Revision: D56320381 fbshipit-source-id: 577a60bac78ed01ad450fcb58dbccc7f04fd5067
1 parent 2c467dd commit 74dba6e

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)