diff --git a/src/builder.cc b/src/builder.cc index 3a6c5306..693b029b 100644 --- a/src/builder.cc +++ b/src/builder.cc @@ -226,11 +226,7 @@ void Builder::run() { } std::vector Builder::bb_names(void) { - std::vector names; - for (auto n : Halide::Internal::GeneratorRegistry::enumerate()) { - names.push_back(n); - } - return names; + return Halide::Internal::GeneratorRegistry::enumerate(); } std::vector Builder::bb_arginfos(const std::string &name) {