From e98aaf1d9169131e77e6c3aaf1ae59b4388733e2 Mon Sep 17 00:00:00 2001 From: Marcello Maggioni Date: Wed, 15 Aug 2018 15:06:53 +0000 Subject: [PATCH] [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 --- llvm/lib/Transforms/Scalar/GVN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.7.4