Skip to content

Commit defff5b

Browse files
committed
address comments
1 parent c4a475b commit defff5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,8 @@ static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC,
50475047
assert(Dim >= 0 && Dim < 3 && "Unexpected dim char");
50485048

50495049
const uint64_t VInt = mdconst::extract<ConstantInt>(V)->getZExtValue();
5050+
5051+
// local variable required for StringRef in Vect3 to point to.
50505052
const std::string VStr = llvm::utostr(VInt);
50515053
Vect3[Dim] = VStr;
50525054
Length = std::max(Length, Dim + 1);

0 commit comments

Comments
 (0)