From: Marcello Maggioni Date: Wed, 15 Aug 2018 15:06:53 +0000 (+0000) Subject: [GVN] Fix typo in IsValueFullyAvailableInBlock. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e98aaf1d9169131e77e6c3aaf1ae59b4388733e2;p=platform%2Fupstream%2Fllvm.git [GVN] Fix typo in IsValueFullyAvailableInBlock. NFC. DenseMap insert() method return a pair not pair Noticed it and thought I might just fix it ... llvm-svn: 339777 --- diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index d87c8e9..1a12711 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -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::iterator, char> IV = + std::pair::iterator, bool> IV = FullyAvailableBlocks.insert(std::make_pair(BB, 2)); // If the entry already existed for this block, return the precomputed value.