mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Fix the build in c++11 mode.
The errors were: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'uint32_t' (aka 'unsigned int') in initializer list and non-constant-expression cannot be narrowed from type 'long' to 'uint32_t' (aka 'unsigned int') in initializer list llvm-svn: 182168
This commit is contained in:
parent
0b9ab072e4
commit
aabd77b198
@ -107,13 +107,13 @@ void R600MCCodeEmitter::EncodeInstruction(const MCInst &MI, raw_ostream &OS,
|
||||
} else if (IS_TEX(Desc)) {
|
||||
int64_t Sampler = MI.getOperand(14).getImm();
|
||||
|
||||
uint32_t SrcSelect[4] = {
|
||||
int64_t SrcSelect[4] = {
|
||||
MI.getOperand(2).getImm(),
|
||||
MI.getOperand(3).getImm(),
|
||||
MI.getOperand(4).getImm(),
|
||||
MI.getOperand(5).getImm()
|
||||
};
|
||||
uint32_t Offsets[3] = {
|
||||
long Offsets[3] = {
|
||||
MI.getOperand(6).getImm() & 0x1F,
|
||||
MI.getOperand(7).getImm() & 0x1F,
|
||||
MI.getOperand(8).getImm() & 0x1F
|
||||
|
Loading…
Reference in New Issue
Block a user