[llvm] ff65a58 - [llvm] Add missing header guards in LogicCombine.h and LogicalExpr.h

Alex Langford via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 15:13:46 PST 2023


Author: Alex Langford
Date: 2023-03-02T15:13:36-08:00
New Revision: ff65a586677eb127ea70ca84b91204c0b9940b00

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

LOG: [llvm] Add missing header guards in LogicCombine.h and LogicalExpr.h

These files were added in 97dcbea63e11d566cff0cd3a758cf1114cf1f633 but
it looks like they are missing header guards. This breaks module builds.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/LogicCombine.h
    llvm/include/llvm/Analysis/LogicalExpr.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/LogicCombine.h b/llvm/include/llvm/Analysis/LogicCombine.h
index 1092c2d99ba2..53eda1f9fe62 100644
--- a/llvm/include/llvm/Analysis/LogicCombine.h
+++ b/llvm/include/llvm/Analysis/LogicCombine.h
@@ -6,6 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef LLVM_ANALYSIS_LOGICCOMBINE_H
+#define LLVM_ANALYSIS_LOGICCOMBINE_H
+
 #include "LogicalExpr.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SetVector.h"
@@ -66,3 +69,5 @@ inline raw_ostream &operator<<(raw_ostream &OS, const LogicalOpNode &I) {
 }
 
 } // namespace llvm
+
+#endif // LLVM_ANALYSIS_LOGICCOMBINE_H

diff  --git a/llvm/include/llvm/Analysis/LogicalExpr.h b/llvm/include/llvm/Analysis/LogicalExpr.h
index 9e32b733cd76..4c99d282421c 100644
--- a/llvm/include/llvm/Analysis/LogicalExpr.h
+++ b/llvm/include/llvm/Analysis/LogicalExpr.h
@@ -44,6 +44,9 @@
 ///      c
 //===----------------------------------------------------------------------===//
 
+#ifndef LLVM_ANALYSIS_LOGICALEXPR_H
+#define LLVM_ANALYSIS_LOGICALEXPR_H
+
 #include "llvm/ADT/DenseSet.h"
 
 namespace llvm {
@@ -138,3 +141,5 @@ inline LogicalExpr operator~(const LogicalExpr &a) {
 }
 
 } // namespace llvm
+
+#endif // LLVM_ANALYSIS_LOGICALEXPR_H


        


More information about the llvm-commits mailing list