From: Craig Topper Date: Thu, 26 Oct 2017 06:46:38 +0000 (+0000) Subject: [X86] Use correct type for return value of ComputeAvailableFeatures in the AsmParser... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34837ae7a00e7128b0734e830f605350139cb026;p=llvm [X86] Use correct type for return value of ComputeAvailableFeatures in the AsmParser. NFC 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 --- diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 0d211c415de..896c50a9328 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -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);