@@ -5560,22 +5560,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
55605560
55615561 RenderTargetOptions (Triple, Args, KernelOrKext, CmdArgs);
55625562
5563- // FIXME: For now we want to demote any errors to warnings, when they have
5564- // been raised for asking the wrong question of scalable vectors, such as
5565- // asking for the fixed number of elements. This may happen because code that
5566- // is not yet ported to work for scalable vectors uses the wrong interfaces,
5567- // whereas the behaviour is actually correct. Emitting a warning helps bring
5568- // up scalable vector support in an incremental way. When scalable vector
5569- // support is stable enough, all uses of wrong interfaces should be considered
5570- // as errors, but until then, we can live with a warning being emitted by the
5571- // compiler. This way, Clang can be used to compile code with scalable vectors
5572- // and identify possible issues.
5573- if (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
5574- isa<BackendJobAction>(JA)) {
5575- CmdArgs.push_back (" -mllvm" );
5576- CmdArgs.push_back (" -treat-scalable-fixed-error-as-warning" );
5577- }
5578-
55795563 // These two are potentially updated by AddClangCLArgs.
55805564 codegenoptions::DebugInfoKind DebugInfoKind = codegenoptions::NoDebugInfo;
55815565 bool EmitCodeView = false ;
0 commit comments