Add maybe-unused attribute to a variable.
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 1 Aug 2018 23:46:48 +0000 (23:46 +0000)
committerNick Desaulniers <ndesaulniers@google.com>
Wed, 1 Aug 2018 23:46:48 +0000 (23:46 +0000)
commit9ff1489d501457c9df12a188fb062129d3b70c1f
treef5b31b227f92cc0d7514310bc78919c5ecadb2d1
parent213d1d23efcd3220c098a8b9238fcf1a0fa1e327
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
llvm/lib/IR/SafepointIRVerifier.cpp