| Index: src/IceOperand.cpp
|
| diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
|
| index 98e8f6f1f9e5978bd9435663f14b463ca36d930e..a2ee8f4af3cd598406a1c3902c733b569daccfc1 100644
|
| --- a/src/IceOperand.cpp
|
| +++ b/src/IceOperand.cpp
|
| @@ -171,9 +171,7 @@ void LiveRange::trim(InstNumberT Lower) {
|
| IceString Variable::getName() const {
|
| if (!Name.empty())
|
| return Name;
|
| - char buf[30];
|
| - snprintf(buf, llvm::array_lengthof(buf), "__%u", getIndex());
|
| - return buf;
|
| + return "__" + std::to_string(getIndex());
|
| }
|
|
|
| Variable Variable::asType(Type Ty) {
|
|
|