[llvm] 0003d57 - [Analysis] Fix a "set but not used" warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 28 06:37:29 PDT 2021


Author: Kazu Hirata
Date: 2021-08-28T06:37:01-07:00
New Revision: 0003d574340e5f010b6587cbec323cc7f47dfb1c

URL: https://github.com/llvm/llvm-project/commit/0003d574340e5f010b6587cbec323cc7f47dfb1c
DIFF: https://github.com/llvm/llvm-project/commit/0003d574340e5f010b6587cbec323cc7f47dfb1c.diff

LOG: [Analysis] Fix a "set but not used" warning

Added: 
    

Modified: 
    llvm/lib/Analysis/IRSimilarityIdentifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp
index 05fe1d3e0cad9..99785a3ec53ef 100644
--- a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp
+++ b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp
@@ -788,6 +788,7 @@ void IRSimilarityCandidate::createCanonicalRelationFrom(
       }
 
       assert(Found && "Could not find matching value for source GVN");
+      (void)Found;
 
     } else
       ResultGVN = *GVNMapping.second.begin();


        


More information about the llvm-commits mailing list