Index: clang/lib/Driver/ToolChains/WebAssembly.cpp =================================================================== --- clang/lib/Driver/ToolChains/WebAssembly.cpp +++ clang/lib/Driver/ToolChains/WebAssembly.cpp @@ -63,7 +63,7 @@ ArgStringList CmdArgs; CmdArgs.push_back("-m"); - if (getToolChain().getTriple().isArch64Bit()) + if (ToolChain.getTriple().isArch64Bit()) CmdArgs.push_back("wasm64"); else CmdArgs.push_back("wasm32"); @@ -130,7 +130,7 @@ // When optimizing, if wasm-opt is available, run it. if (Arg *A = Args.getLastArg(options::OPT_O_Group)) { - auto WasmOptPath = getToolChain().GetProgramPath("wasm-opt"); + auto WasmOptPath = ToolChain.GetProgramPath("wasm-opt"); if (WasmOptPath != "wasm-opt") { StringRef OOpt = "s"; if (A->getOption().matches(options::OPT_O4) ||