[NFC] Make the type of X86AlignBranchBoundary compatible
authorShengchen Kan <shengchen.kan@intel.com>
Thu, 2 Jan 2020 06:24:13 +0000 (14:24 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Thu, 2 Jan 2020 06:35:57 +0000 (14:35 +0800)
Change the type of X86AlignBranchBoundary from cl::opt<uint64_t> to
cl::opt<unsigned> since the template class cl::opt is only instantiated with
type unsigned, int, std::string, char and bool.

llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

index 5d18bd5..ec250e1 100644 (file)
@@ -117,7 +117,7 @@ public:
 
 X86AlignBranchKind X86AlignBranchKindLoc;
 
-cl::opt<uint64_t> X86AlignBranchBoundary(
+cl::opt<unsigned> X86AlignBranchBoundary(
     "x86-align-branch-boundary", cl::init(0),
     cl::desc(
         "Control how the assembler should align branches with NOP. If the "