diff options
author | Abel Bernabeu <abel.bernabeu@gmail.com> | 2017-05-03 19:01:28 +0100 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2017-05-03 14:01:28 -0400 |
commit | cb7751bd34fa30691abfe9df7696da3dd88034c0 (patch) | |
tree | fd1ecd2b7bcf2188dbce3798bcabc12156fda32e | |
parent | b4840c3be301e757ed6f77f298781397018a62a9 (diff) |
Fixed a warning (#211)
-rw-r--r-- | lib/SPIRV/libSPIRV/SPIRVInstruction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SPIRV/libSPIRV/SPIRVInstruction.h b/lib/SPIRV/libSPIRV/SPIRVInstruction.h index dffdcc8..bda2eff 100644 --- a/lib/SPIRV/libSPIRV/SPIRVInstruction.h +++ b/lib/SPIRV/libSPIRV/SPIRVInstruction.h @@ -1091,7 +1091,7 @@ public: if (!Module->exist(Pairs[PairSize*I + getLiteralsCount()], &BB))
continue;
- for (int i = 0; i < getLiteralsCount(); ++i) {
+ for (size_t i = 0; i < getLiteralsCount(); ++i) {
Literals.push_back(Pairs.at(PairSize*I + i));
}
Func(Literals, static_cast<SPIRVBasicBlock *>(BB));
|