[GVN] Fix typo in IsValueFullyAvailableInBlock. NFC.
authorMarcello Maggioni <hayarms@gmail.com>
Wed, 15 Aug 2018 15:06:53 +0000 (15:06 +0000)
committerMarcello Maggioni <hayarms@gmail.com>
Wed, 15 Aug 2018 15:06:53 +0000 (15:06 +0000)
DenseMap insert() method return a pair<iterator, bool>
not pair<iterator, char>
Noticed it and thought I might just fix it ...

llvm-svn: 339777

llvm/lib/Transforms/Scalar/GVN.cpp

index d87c8e9..1a12711 100644 (file)
@@ -678,7 +678,7 @@ static bool IsValueFullyAvailableInBlock(BasicBlock *BB,
 
   // Optimistically assume that the block is fully available and check to see
   // if we already know about this block in one lookup.
-  std::pair<DenseMap<BasicBlock*, char>::iterator, char> IV =
+  std::pair<DenseMap<BasicBlock*, char>::iterator, bool> IV =
     FullyAvailableBlocks.insert(std::make_pair(BB, 2));
 
   // If the entry already existed for this block, return the precomputed value.