Skip to content

Commit 3d8cf03

Browse files
committed
[Review] Rename Magic->UInt32Max
1 parent df43b63 commit 3d8cf03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVPrepareGlobals.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ bool tryExtendDynamicLDSGlobal(GlobalVariable &GV) {
5555
if (!AT || AT->getNumElements() != 0)
5656
return false;
5757

58-
constexpr auto Magic = std::numeric_limits<uint32_t>::max();
59-
ArrayType *NewAT = ArrayType::get(AT->getElementType(), Magic);
58+
constexpr auto UInt32Max = std::numeric_limits<uint32_t>::max();
59+
ArrayType *NewAT = ArrayType::get(AT->getElementType(), UInt32Max);
6060
GlobalVariable *NewGV = new GlobalVariable(
6161
*GV.getParent(), NewAT, GV.isConstant(), GV.getLinkage(), nullptr, "",
6262
&GV, GV.getThreadLocalMode(), WorkgroupAS, GV.isExternallyInitialized());

0 commit comments

Comments
 (0)