From 035ebff41991e7735854fc320373530450aa7e44 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 4 May 2017 21:29:50 +0000 Subject: [ConstantRange] Add LLVM_NODISCARD to ConstantRange since a large number of its methods construct new ConstantRange objects. llvm-svn: 302194 --- llvm/include/llvm/IR/ConstantRange.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm') diff --git a/llvm/include/llvm/IR/ConstantRange.h b/llvm/include/llvm/IR/ConstantRange.h index fd7f96abb19..e200e9670ee 100644 --- a/llvm/include/llvm/IR/ConstantRange.h +++ b/llvm/include/llvm/IR/ConstantRange.h @@ -41,7 +41,7 @@ namespace llvm { class MDNode; /// This class represents a range of values. -class ConstantRange { +class LLVM_NODISCARD ConstantRange { APInt Lower, Upper; public: -- cgit v1.2.3