[Analysis] Fix a "set but not used" warning
authorKazu Hirata <kazu@google.com>
Sat, 28 Aug 2021 13:37:01 +0000 (06:37 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 28 Aug 2021 13:37:01 +0000 (06:37 -0700)
llvm/lib/Analysis/IRSimilarityIdentifier.cpp

index 05fe1d3..99785a3 100644 (file)
@@ -788,6 +788,7 @@ void IRSimilarityCandidate::createCanonicalRelationFrom(
       }
 
       assert(Found && "Could not find matching value for source GVN");
+      (void)Found;
 
     } else
       ResultGVN = *GVNMapping.second.begin();