[PATCH] D94592: [NFC][AsmPrinter] Windows warning: Use explicit cast
David Stuttard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 01:12:25 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG259936f4910a: [NFC][AsmPrinter] Windows warning: Use explicit cast (authored by dstuttard).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94592/new/
https://reviews.llvm.org/D94592
Files:
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Index: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
===================================================================
--- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -846,7 +846,7 @@
CommentOS << *Size << "-byte Reload\n";
} else if ((Size = MI.getFoldedRestoreSize(TII))) {
if (*Size) {
- if (*Size == static_cast<unsigned>(MemoryLocation::UnknownSize))
+ if (*Size == unsigned(MemoryLocation::UnknownSize))
CommentOS << "Unknown-size Folded Reload\n";
else
CommentOS << *Size << "-byte Folded Reload\n";
@@ -855,7 +855,7 @@
CommentOS << *Size << "-byte Spill\n";
} else if ((Size = MI.getFoldedSpillSize(TII))) {
if (*Size) {
- if (*Size == static_cast<unsigned>(MemoryLocation::UnknownSize))
+ if (*Size == unsigned(MemoryLocation::UnknownSize))
CommentOS << "Unknown-size Folded Spill\n";
else
CommentOS << *Size << "-byte Folded Spill\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94592.316587.patch
Type: text/x-patch
Size: 989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/e0234a6a/attachment.bin>
More information about the llvm-commits
mailing list