diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h index 5577b09fee89c..36b324355ee10 100644 --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/include/llvm/ADT/SmallVector.h @@ -221,6 +221,8 @@ class SmallVectorTemplateCommon this->assertSafeToAdd(From, To - From); this->assertSafeToAdd(To - 1, To - From); } + (void)From; + (void)To; } /// Reserve enough space to add one element, and return the updated element