We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3215fd7 commit e5aae97Copy full SHA for e5aae97
llvm/include/llvm/CodeGen/PBQP/Math.h
@@ -11,6 +11,7 @@
11
12
#include "llvm/ADT/Hashing.h"
13
#include "llvm/ADT/STLExtras.h"
14
+#include "llvm/Support/InterleavedRange.h"
15
#include <algorithm>
16
#include <cassert>
17
#include <functional>
@@ -111,12 +112,7 @@ inline hash_code hash_value(const Vector &V) {
111
112
template <typename OStream>
113
OStream& operator<<(OStream &OS, const Vector &V) {
114
assert((V.getLength() != 0) && "Zero-length vector badness.");
-
115
- OS << "[ " << V[0];
116
- for (unsigned i = 1; i < V.getLength(); ++i)
117
- OS << ", " << V[i];
118
- OS << " ]";
119
+ OS << "[ " << llvm::interleaved(V) << " ]";
120
return OS;
121
}
122
0 commit comments