From 2c0c51593d3695f5d3d4762558ab7b8e937c8f67 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 29 May 2007 23:34:14 +0000 Subject: [PATCH] Fix a typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37350 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVNPRE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index d32939fe953..131976bb108 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp @@ -401,7 +401,7 @@ bool GVNPRE::runOnFunction(Function &F) { for (unsigned i = 0; i < BB->getTerminator()->getNumSuccessors(); ++i) { BasicBlock* currSucc = BB->getTerminator()->getSuccessor(i); std::set temp; - if (visted.find(currSucc) == visited.end()) + if (visited.find(currSucc) == visited.end()) temp.insert(maximalSet.begin(), maximalSet.end()); else temp.insert(anticIn.begin(), anticIn.end());