Carlo Kok was compiling with MSVC, caught some more issues.
authorGreg Clayton <gclayton@apple.com>
Wed, 31 Oct 2012 20:51:31 +0000 (20:51 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 31 Oct 2012 20:51:31 +0000 (20:51 +0000)
llvm-svn: 167168

lldb/source/Expression/ASTResultSynthesizer.cpp

index f40266c..f295209 100644 (file)
@@ -269,7 +269,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body,
         if (!implicit_cast)
             break;
         
-        if (!implicit_cast->getCastKind() == CK_LValueToRValue)
+        if (implicit_cast->getCastKind() != CK_LValueToRValue)
             break;
         
         last_expr = implicit_cast->getSubExpr();