diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index ef19ce1d1d1f..45e6916012a1 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -661,6 +661,7 @@ static Triple::ObjectFormatType parseFormat(StringRef EnvironmentName) { .EndsWith("goff", Triple::GOFF) .EndsWith("macho", Triple::MachO) .EndsWith("wasm", Triple::Wasm) + .EndsWith("genericjs", Triple::Wasm) .EndsWith("spirv", Triple::SPIRV) .Default(Triple::UnknownObjectFormat); }