]> granicus.if.org Git - llvm/commitdiff
[X86] Use correct type for return value of ComputeAvailableFeatures in the AsmParser...
authorCraig Topper <craig.topper@intel.com>
Thu, 26 Oct 2017 06:46:38 +0000 (06:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 26 Oct 2017 06:46:38 +0000 (06:46 +0000)
There aren't enough used bits to make this a functional change, but we should fix it for consistency.

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

lib/Target/X86/AsmParser/X86AsmParser.cpp

index 0d211c415de1d7f6b2c39f36a0e0af0b95ee4123..896c50a93287fba53057ba4157d105ac64d2d796 100644 (file)
@@ -909,7 +909,7 @@ private:
     MCSubtargetInfo &STI = copySTI();
     FeatureBitset AllModes({X86::Mode64Bit, X86::Mode32Bit, X86::Mode16Bit});
     FeatureBitset OldMode = STI.getFeatureBits() & AllModes;
-    unsigned FB = ComputeAvailableFeatures(
+    uint64_t FB = ComputeAvailableFeatures(
       STI.ToggleFeature(OldMode.flip(mode)));
     setAvailableFeatures(FB);