Skip to content

Commit 62f09d7

Browse files
[Clang] Stop demoting ElementCount/TypeSize conversion errors to warnings.
Differential Revision: https://reviews.llvm.org/D146146
1 parent e495eab commit 62f09d7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)