diff options
author | Fangrui Song <maskray@google.com> | 2019-08-24 02:50:42 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-08-24 02:50:42 +0000 |
commit | eb70ac024931ab66e6f2185af9ef3a39e62b683c (patch) | |
tree | 24c4fd56a29014e3b3ff84337b3fdb9e169018b5 /llvm/lib/Transforms/Scalar/LoopFuse.cpp | |
parent | cc25dabe23859826fdd73beda7b8d5b2ea265a34 (diff) | |
download | llvm-eb70ac024931ab66e6f2185af9ef3a39e62b683c.zip llvm-eb70ac024931ab66e6f2185af9ef3a39e62b683c.tar.gz llvm-eb70ac024931ab66e6f2185af9ef3a39e62b683c.tar.bz2 |
[LoopFusion] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off build
llvm-svn: 369836
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopFuse.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopFuse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp index 704a71e..3892d09b 100644 --- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp @@ -354,15 +354,15 @@ using LoopVector = SmallVector<Loop *, 4>; using FusionCandidateSet = std::set<FusionCandidate, FusionCandidateCompare>; using FusionCandidateCollection = SmallVector<FusionCandidateSet, 4>; -inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, +#if !defined(NDEBUG) +static llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const FusionCandidateSet &CandSet) { - for (auto IT : CandSet) - OS << IT << "\n"; + for (const FusionCandidate &FC : CandSet) + OS << FC << '\n'; return OS; } -#if !defined(NDEBUG) static void printFusionCandidates(const FusionCandidateCollection &FusionCandidates) { dbgs() << "Fusion Candidates: \n"; |