summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Walker <paul.walker@arm.com>2023-03-14 17:52:13 +0000
committerPaul Walker <paul.walker@arm.com>2023-03-17 12:49:45 +0000
commit62f09d788f9fc540db12f3cfa2f98760071fca96 (patch)
tree86fc93beaf1c5b15d653f2a57887b1e654cd3acb
parente495eabd326801c1e00508898dbcb04073a31014 (diff)
downloadllvm-62f09d788f9fc540db12f3cfa2f98760071fca96.tar.gz
[Clang] Stop demoting ElementCount/TypeSize conversion errors to warnings.
Differential Revision: https://reviews.llvm.org/D146146
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 1c62cd2ecc9d..c40e93b4ad13 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5560,22 +5560,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
RenderTargetOptions(Triple, Args, KernelOrKext, CmdArgs);
- // FIXME: For now we want to demote any errors to warnings, when they have
- // been raised for asking the wrong question of scalable vectors, such as
- // asking for the fixed number of elements. This may happen because code that
- // is not yet ported to work for scalable vectors uses the wrong interfaces,
- // whereas the behaviour is actually correct. Emitting a warning helps bring
- // up scalable vector support in an incremental way. When scalable vector
- // support is stable enough, all uses of wrong interfaces should be considered
- // as errors, but until then, we can live with a warning being emitted by the
- // compiler. This way, Clang can be used to compile code with scalable vectors
- // and identify possible issues.
- if (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
- isa<BackendJobAction>(JA)) {
- CmdArgs.push_back("-mllvm");
- CmdArgs.push_back("-treat-scalable-fixed-error-as-warning");
- }
-
// These two are potentially updated by AddClangCLArgs.
codegenoptions::DebugInfoKind DebugInfoKind = codegenoptions::NoDebugInfo;
bool EmitCodeView = false;