[llvm] r222426 - Fix a typo

Timur Iskhodzhanov timurrrr at google.com
Thu Nov 20 03:49:00 PST 2014


Author: timurrrr
Date: Thu Nov 20 05:48:58 2014
New Revision: 222426

URL: http://llvm.org/viewvc/llvm-project?rev=222426&view=rev
Log:
Fix a typo

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=222426&r1=222425&r2=222426&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Thu Nov 20 05:48:58 2014
@@ -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





More information about the llvm-commits mailing list