diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-04 21:29:50 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-04 21:29:50 +0000 |
| commit | 035ebff41991e7735854fc320373530450aa7e44 (patch) | |
| tree | 6c60e4d70be95b0a62c4827441bd6fa0ad74b0cf /llvm | |
| parent | 5974dadc697520f8cb3087e0a7e84e0319098af9 (diff) | |
| download | bcm5719-llvm-035ebff41991e7735854fc320373530450aa7e44.tar.gz bcm5719-llvm-035ebff41991e7735854fc320373530450aa7e44.zip | |
[ConstantRange] Add LLVM_NODISCARD to ConstantRange since a large number of its methods construct new ConstantRange objects.
llvm-svn: 302194
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/IR/ConstantRange.h | 2 |
1 files changed, 1 insertions, 1 deletions
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: |

