OSDN Git Service

[X86] Use uint32_t instead of unsigned in GetLo32XForm for readability. NFC
authorCraig Topper <craig.topper@intel.com>
Sun, 15 Apr 2018 19:11:24 +0000 (19:11 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 15 Apr 2018 19:11:24 +0000 (19:11 +0000)
GetLo8XForm right next to it uses uint8_t so uint32_t is consistent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrCompiler.td

index d795dce..e455349 100644 (file)
@@ -17,7 +17,7 @@
 
 def GetLo32XForm : SDNodeXForm<imm, [{
   // Transformation function: get the low 32 bits.
-  return getI32Imm((unsigned)N->getZExtValue(), SDLoc(N));
+  return getI32Imm((uint32_t)N->getZExtValue(), SDLoc(N));
 }]>;
 
 def GetLo8XForm : SDNodeXForm<imm, [{