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 | |
| parent | cc25dabe23859826fdd73beda7b8d5b2ea265a34 (diff) | |
| download | bcm5719-llvm-eb70ac024931ab66e6f2185af9ef3a39e62b683c.tar.gz bcm5719-llvm-eb70ac024931ab66e6f2185af9ef3a39e62b683c.zip | |
[LoopFusion] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off build
llvm-svn: 369836
Diffstat (limited to 'llvm/lib/Transforms')
| -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 704a71e1c5c..3892d09bc7d 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"; | 

