Index: src/IceRegAlloc.cpp |
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp |
index 282a544ba888ca8b39e4ba125387e02c03beae26..348f25618145db411bfe32f08c40142381eba2ef 100644 |
--- a/src/IceRegAlloc.cpp |
+++ b/src/IceRegAlloc.cpp |
@@ -74,7 +74,7 @@ void dumpLiveRange(const Variable *Var, const Cfg *Func) { |
Ostream &Str = Func->getContext()->getStrDump(); |
Str << "R="; |
if (Var->hasRegTmp()) { |
- Str << llvm::format("%2d", Var->getRegNumTmp()); |
+ Str << llvm::format("%2d", int(Var->getRegNumTmp())); |
} else { |
Str << "NA"; |
} |