Skip to content

Commit bbf011b

Browse files
committed
std::set::lower_bound is dumbly not actually a lower bound
1 parent fe089ad commit bbf011b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/ReactantExtra/API.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,7 +3071,7 @@ struct LinkableRuntime {
30713071
executables;
30723072

30733073
// Set of allocated pointers to size
3074-
std::set<void *> allocations;
3074+
std::set<void *, std::greater<void*>> allocations;
30753075

30763076
LinkableRuntime(const std::string &backend) : registry() {
30773077
InitializeRegistry(wrap(&registry));
@@ -3219,7 +3219,7 @@ REACTANT_ABI void reactantXLAExec(LinkableRuntime **__restrict__ lrtP,
32193219
for (int64_t i = 0; i < argcnt; i++) {
32203220
auto &&[argB, argO, argP] = bufferAndOffset(lrt, args[i]);
32213221
if (argO != 0) {
3222-
llvm::errs() << "only zero-offset execution supported\n";
3222+
llvm::errs() << "only zero-offset execution supported, argument " << i << " had byte offset of " << argO << "\n";
32233223
exit(1);
32243224
}
32253225
baseArrays[i] = argB;

0 commit comments

Comments
 (0)