aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode/BitCodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Bitcode/BitCodes.h')
-rw-r--r--include/llvm/Bitcode/BitCodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/BitCodes.h b/include/llvm/Bitcode/BitCodes.h
index 94e3a6615c..f140cc3b19 100644
--- a/include/llvm/Bitcode/BitCodes.h
+++ b/include/llvm/Bitcode/BitCodes.h
@@ -165,7 +165,9 @@ public:
void addRef() { ++RefCount; }
void dropRef() { if (--RefCount == 0) delete this; }
- unsigned getNumOperandInfos() const { return OperandList.size(); }
+ unsigned getNumOperandInfos() const {
+ return static_cast<unsigned>(OperandList.size());
+ }
const BitCodeAbbrevOp &getOperandInfo(unsigned N) const {
return OperandList[N];
}