From: Timur Iskhodzhanov Date: Thu, 20 Nov 2014 11:48:58 +0000 (+0000) Subject: Fix a typo X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6a490ac188d7d13d0c946e7ea34367d66ee6086a;p=oota-llvm.git Fix a typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222426 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 4bedf0e2fb9..3186e6fbe12 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -392,7 +392,7 @@ private: /// it wasn't set before or if the new value is the same as the old one bool setValueOnce(Value *NewVal) { if(CompValue && CompValue != NewVal) return false; - return CompValue = NewVal; + return CompValue == NewVal; } /// Try to match Instruction "I" as a comparison against a constant and