Author: Matt Arsenault Date: 2026-05-21T12:00:53Z New Revision: 26f5eb2b8f53bda6b4ae97f9757523bd157b9263
URL: https://github.com/llvm/llvm-project/commit/26f5eb2b8f53bda6b4ae97f9757523bd157b9263 DIFF: https://github.com/llvm/llvm-project/commit/26f5eb2b8f53bda6b4ae97f9757523bd157b9263.diff LOG: clang/AMDGPU: Stop adding -m32/-m64 for OpenCL (#199005) The pointer size is not configurable; you get what you get based on the triple. I don't know what the point of this was, I don't even see the argument in the final cc1 invocation. Added: Modified: clang/lib/Driver/ToolChains/AMDGPU.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ToolChains/AMDGPU.cpp b/clang/lib/Driver/ToolChains/AMDGPU.cpp index fdc52a78c77b5..c81254b14bca6 100644 --- a/clang/lib/Driver/ToolChains/AMDGPU.cpp +++ b/clang/lib/Driver/ToolChains/AMDGPU.cpp @@ -757,10 +757,6 @@ AMDGPUToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch, // Phase 1 (.cl -> .bc) if (Args.hasArg(options::OPT_c) && Args.hasArg(options::OPT_emit_llvm)) { - DAL->AddFlagArg(nullptr, Opts.getOption(getTriple().isArch64Bit() - ? options::OPT_m64 - : options::OPT_m32)); - // Have to check OPT_O4, OPT_O0 & OPT_Ofast separately // as they defined that way in Options.td if (!Args.hasArg(options::OPT_O, options::OPT_O0, options::OPT_O4, _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
