From 91589cf679c7946edfb5b33d1eb94d723ad99e2b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 23 Sep 2020 15:54:50 +0100 Subject: [PATCH] Add missing namespace closure comments. NFCI. Fixes some clang-tidy llvm-namespace-comment warnings. --- llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp | 2 +- llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp index 10b608d..495493a 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp @@ -93,7 +93,7 @@ bool isSaturating(AtomicRMWInst& RMWI) { return C->isMaxValue(false); }; } -} +} // namespace Instruction *InstCombinerImpl::visitAtomicRMWInst(AtomicRMWInst &RMWI) { diff --git a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp index 539a1f1..d687ec6 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp @@ -1013,7 +1013,7 @@ struct LoweredPHIRecord { LoweredPHIRecord(PHINode *pn, unsigned Sh) : PN(pn), Shift(Sh), Width(0) {} }; -} +} // namespace namespace llvm { template<> @@ -1034,7 +1034,7 @@ namespace llvm { LHS.Width == RHS.Width; } }; -} +} // namespace llvm /// This is an integer PHI and we know that it has an illegal type: see if it is -- 2.7.4