[llvm] r224249 - Changing a cast from unsigned to uint64_t, should be NFC in practice.
Aaron Ballman
aaron at aaronballman.com
Mon Dec 15 06:25:13 PST 2014
Author: aaronballman
Date: Mon Dec 15 08:25:12 2014
New Revision: 224249
URL: http://llvm.org/viewvc/llvm-project?rev=224249&view=rev
Log:
Changing a cast from unsigned to uint64_t, should be NFC in practice.
Modified:
llvm/trunk/lib/MC/MCAsmStreamer.cpp
Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=224249&r1=224248&r2=224249&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Mon Dec 15 08:25:12 2014
@@ -683,7 +683,7 @@ void MCAsmStreamer::EmitValueImpl(const
// emission domain. This produces nicer output and silences potential
// truncation warnings when round tripping through another assembler.
uint64_t Shift = 64 - EmissionSize * 8;
- assert(Shift < static_cast<unsigned>(
+ assert(Shift < static_cast<uint64_t>(
std::numeric_limits<unsigned long long>::digits) &&
"undefined behavior");
ValueToEmit &= ~0ULL >> Shift;
More information about the llvm-commits
mailing list