Skip to content

Commit ab1c97b

Browse files
authored
[AMDGPU] Accept/Ignore any -mcmodel arguments. (#70760)
Authored-by: Pravin Jagtap <[email protected]>
1 parent c280bed commit ab1c97b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5743,9 +5743,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
57435743
} else if (Triple.getArch() == llvm::Triple::x86_64) {
57445744
Ok = llvm::is_contained({"small", "kernel", "medium", "large", "tiny"},
57455745
CM);
5746-
} else if (Triple.isNVPTX()) {
5747-
// NVPTX does not care about the code model and will accept whatever works
5748-
// for the host.
5746+
} else if (Triple.isNVPTX() || Triple.isAMDGPU()) {
5747+
// NVPTX/AMDGPU does not care about the code model and will accept
5748+
// whatever works for the host.
57495749
Ok = true;
57505750
}
57515751
if (Ok) {

0 commit comments

Comments
 (0)