From 47b2ed2e166ddf3135f76d3d2d13374d91d9d1b0 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 7 Sep 2018 14:50:25 +0000 Subject: Revert "[OPENMP][NVPTX] Disable runtime-type info for CUDA devices." Still need the RTTI for NVPTX target to pass sema checks. llvm-svn: 341668 --- clang/lib/Frontend/CompilerInvocation.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 2a05d6f..aea8106 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2648,11 +2648,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.Exceptions = 0; Opts.CXXExceptions = 0; } - // NVPTX does not support RTTI. - if (Opts.OpenMPIsDevice && T.isNVPTX()) { - Opts.RTTI = 0; - Opts.RTTIData = 0; - } // Get the OpenMP target triples if any. if (Arg *A = Args.getLastArg(options::OPT_fopenmp_targets_EQ)) { -- cgit v1.1