mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
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
This commit is contained in:
parent
d6ceccaf2d
commit
65cb1c16dd
@ -92,6 +92,7 @@ public:
|
||||
Listed = true;
|
||||
}
|
||||
}
|
||||
(void)Listed;
|
||||
assert(Listed && "basic block is not found among incoming blocks");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user