diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2018-08-01 23:46:48 +0000 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2018-08-01 23:46:48 +0000 |
commit | 9ff1489d501457c9df12a188fb062129d3b70c1f (patch) | |
tree | f5b31b227f92cc0d7514310bc78919c5ecadb2d1 /llvm/lib/IR/SafepointIRVerifier.cpp | |
parent | 213d1d23efcd3220c098a8b9238fcf1a0fa1e327 (diff) | |
download | bcm5719-llvm-9ff1489d501457c9df12a188fb062129d3b70c1f.tar.gz bcm5719-llvm-9ff1489d501457c9df12a188fb062129d3b70c1f.zip |
Add maybe-unused attribute to a variable.
Summary:
Mark a variable as maybe-unused to prevent a -Wunused-but-set-variable
warning in optimized builds where asserts are removed.Test/first commit
to check setup and understand patch submission process.
Reviewers: srhines, pirama, dblaikie
Reviewed By: dblaikie
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D49756
llvm-svn: 338654
Diffstat (limited to 'llvm/lib/IR/SafepointIRVerifier.cpp')
-rw-r--r-- | llvm/lib/IR/SafepointIRVerifier.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/SafepointIRVerifier.cpp b/llvm/lib/IR/SafepointIRVerifier.cpp index 6f73126be73..7af48f5301f 100644 --- a/llvm/lib/IR/SafepointIRVerifier.cpp +++ b/llvm/lib/IR/SafepointIRVerifier.cpp @@ -92,6 +92,7 @@ public: Listed = true; } } + (void)Listed; assert(Listed && "basic block is not found among incoming blocks"); return false; } |