[clang] 182b7e6 - [OpenMP] Add a missing 'const' (NFC) (#71596)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 7 18:42:28 PST 2023
Author: Mike Rice
Date: 2023-11-07T18:42:23-08:00
New Revision: 182b7e6ba75055a84544943a06df9964d3a08d81
URL: https://github.com/llvm/llvm-project/commit/182b7e6ba75055a84544943a06df9964d3a08d81
DIFF: https://github.com/llvm/llvm-project/commit/182b7e6ba75055a84544943a06df9964d3a08d81.diff
LOG: [OpenMP] Add a missing 'const' (NFC) (#71596)
Added:
Modified:
clang/include/clang/AST/StmtOpenMP.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/StmtOpenMP.h b/clang/include/clang/AST/StmtOpenMP.h
index 2725747e051e728..62164339153573c 100644
--- a/clang/include/clang/AST/StmtOpenMP.h
+++ b/clang/include/clang/AST/StmtOpenMP.h
@@ -994,7 +994,7 @@ class OMPLoopTransformationDirective : public OMPLoopBasedDirective {
unsigned getNumAssociatedLoops() const { return getLoopsNumber(); }
/// Return the number of loops generated by this loop transformation.
- unsigned getNumGeneratedLoops() { return NumGeneratedLoops; }
+ unsigned getNumGeneratedLoops() const { return NumGeneratedLoops; }
/// Get the de-sugared statements after the loop transformation.
///
More information about the cfe-commits
mailing list