Skip to content

Commit c798cf4

Browse files
committed
Merge branch 'llvm:main' into vector_update
2 parents c53076b + f56cdd4 commit c798cf4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

compiler-rt/lib/scudo/standalone/vector.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef SCUDO_VECTOR_H_
1010
#define SCUDO_VECTOR_H_
1111

12+
#include "common.h"
13+
#include "internal_defs.h"
1214
#include "mem_map.h"
1315

1416
#include <string.h>
@@ -121,7 +123,7 @@ template <typename T, size_t StaticCapacity> class VectorNoCtor {
121123
};
122124

123125
template <typename T, size_t StaticCapacity = 8>
124-
class Vector : public VectorNoCtor<T, StaticCapacity> {
126+
class Vector : public VectorNoCtor<T, Max<size_t>(1, StaticCapacity)> {
125127
public:
126128
constexpr Vector() { VectorNoCtor<T, StaticCapacity>::init(); }
127129
explicit Vector(uptr Count) {

llvm/test/Transforms/InstCombine/AMDGPU/select-from-load.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ entry:
2525
br label %for.cond10
2626

2727
for.cond10: ; preds = %for.cond10, %entry
28-
%3 = load i64, ptr %retval.0.i
29-
store i64 %3, ptr addrspace(1) null
28+
%load.0 = load i64, ptr %retval.0.i
29+
store i64 %load.0, ptr addrspace(1) null
3030
br label %for.cond10
3131
}
3232

0 commit comments

Comments
 (0)