mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Change all self assignments X=X to (void)X, so that we can turn on a
new gcc warning that complains on self-assignments and self-initializations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -108,7 +108,7 @@ TEST_F(ValueHandle, WeakVH_NullOnDeletion) {
|
||||
TEST_F(ValueHandle, AssertingVH_BasicOperation) {
|
||||
AssertingVH<CastInst> AVH(BitcastV.get());
|
||||
CastInst *implicit_to_exact_type = AVH;
|
||||
implicit_to_exact_type = implicit_to_exact_type; // Avoid warning.
|
||||
(void)implicit_to_exact_type; // Avoid warning.
|
||||
|
||||
AssertingVH<Value> GenericAVH(BitcastV.get());
|
||||
EXPECT_EQ(BitcastV.get(), GenericAVH);
|
||||
@ -125,7 +125,7 @@ TEST_F(ValueHandle, AssertingVH_Const) {
|
||||
const CastInst *ConstBitcast = BitcastV.get();
|
||||
AssertingVH<const CastInst> AVH(ConstBitcast);
|
||||
const CastInst *implicit_to_exact_type = AVH;
|
||||
implicit_to_exact_type = implicit_to_exact_type; // Avoid warning.
|
||||
(void)implicit_to_exact_type; // Avoid warning.
|
||||
}
|
||||
|
||||
TEST_F(ValueHandle, AssertingVH_Comparisons) {
|
||||
|
Reference in New Issue
Block a user