Skip to content

Commit d25119f

Browse files
Fix flatbuffer error (#18505) (#18505)
Summary: Error message: [Pre-existing Failure] Target failed to build. Action failed: fbcode//executorch/runtime/executor/test:program_test (cfg:dev-linux-x86_64-fbcode-platform010-clang19-asan-ubsan-dev#f651cb08bd7caa6c) (cxx_compile program_test.cpp (pic)) headers/flatbuffers/flatbuffers.h:1678:42: note: candidate function template not viable: requires 2 arguments, but 1 was provided 1678 | template<typename T> Offset<Vector<T>> CreateVector(const T *v, size_t Differential Revision: D98196906
1 parent 4d8465e commit d25119f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

runtime/executor/test/program_test.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,10 @@ TEST_F(ProgramTest, NullPlanNameDoesNotCrash) {
811811
auto program = executorch_flatbuffer::CreateProgram(
812812
builder,
813813
0,
814-
builder.CreateVector({execution_plan}),
814+
builder.CreateVector(
815+
std::vector<
816+
flatbuffers::Offset<executorch_flatbuffer::ExecutionPlan>>{
817+
execution_plan}),
815818
builder.CreateVector(
816819
std::vector<flatbuffers::Offset<executorch_flatbuffer::Buffer>>{}),
817820
builder.CreateVector(

0 commit comments

Comments
 (0)