Make a bunch of static arrays const.
[oota-llvm.git] / lib / Target / XCore / Disassembler / XCoreDisassembler.cpp
index 2e44ac949b2cff4736280fb651c4e55492229b9b..aaf267af5311df5154cc2bdb825c98e6300ac10c 100644 (file)
@@ -224,7 +224,7 @@ static DecodeStatus DecodeBitpOperand(MCInst &Inst, unsigned Val,
                                       uint64_t Address, const void *Decoder) {
   if (Val > 11)
     return MCDisassembler::Fail;
-  static unsigned Values[] = {
+  static const unsigned Values[] = {
     32 /*bpw*/, 1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32
   };
   Inst.addOperand(MCOperand::createImm(Values[Val]));