From: Timur Iskhodzhanov Date: Thu, 20 Nov 2014 11:48:58 +0000 (+0000) Subject: Fix a typo X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0bffc0c1197b5a028bd85119c2584beb499dfa2;p=platform%2Fupstream%2Fllvm.git Fix a typo llvm-svn: 222426 --- diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 4bedf0e..3186e6f 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/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