Skip to content

Commit 6b29aa2

Browse files
committed
Revert "[OPENMP]Do not use RTTI by default for NVPTX devices."
This reverts commit 23058f9. It breaks builds of cuda code somehow in some cases.
1 parent 313d897 commit 6b29aa2

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args,
6868
}
6969

7070
// -frtti is default, except for the PS4 CPU.
71-
return (Triple.isPS4CPU() || Triple.isNVPTX()) ? ToolChain::RM_Disabled
72-
: ToolChain::RM_Enabled;
71+
return (Triple.isPS4CPU()) ? ToolChain::RM_Disabled : ToolChain::RM_Enabled;
7372
}
7473

7574
ToolChain::ToolChain(const Driver &D, const llvm::Triple &T,

clang/test/Driver/openmp-offload-gpu.cpp

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)