[flang-commits] [flang] 35a2a04 - [flang][NFC] Fix build errors for clang-10

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Sat Oct 3 07:10:26 PDT 2020


Author: Andrzej Warzynski
Date: 2020-10-03T15:10:17+01:00
New Revision: 35a2a042ddd127205455fc26ae516ccc513fd5cf

URL: https://github.com/llvm/llvm-project/commit/35a2a042ddd127205455fc26ae516ccc513fd5cf
DIFF: https://github.com/llvm/llvm-project/commit/35a2a042ddd127205455fc26ae516ccc513fd5cf.diff

LOG: [flang][NFC] Fix build errors for clang-10

This patch fixes one worning. Since Flang sets `-Werror`, that's
sufficient for a build to fail. As per flang/README.md, Clang-10 is one
of the officially supported compilers.

Differential Revision: https://reviews.llvm.org/D88723

Added: 
    

Modified: 
    flang/lib/Lower/OpenACC.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index e1fb724fb92e..b39fe9b695f8 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -99,7 +99,6 @@ static void genACC(Fortran::lower::AbstractConverter &converter,
   if (loopDirective.v == llvm::acc::ACCD_loop) {
     auto &firOpBuilder = converter.getFirOpBuilder();
     auto currentLocation = converter.getCurrentLocation();
-    llvm::ArrayRef<mlir::Type> argTy;
 
     // Add attribute extracted from clauses.
     const auto &accClauseList =


        


More information about the flang-commits mailing list