]> granicus.if.org Git - clang/commitdiff
Revert last patch, but add a fixme
authorTed Kremenek <kremenek@apple.com>
Tue, 30 Sep 2008 05:35:42 +0000 (05:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 30 Sep 2008 05:35:42 +0000 (05:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56832 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index a4ba1965bb8811a5afff1944efcf65e3b26b7d2f..40c2b6507b9de0b8eaf81f84ab0d05b012cbe68c 100644 (file)
@@ -1687,7 +1687,9 @@ void GRExprEngine::VisitUnaryOperator(UnaryOperator* U, NodeTy* Pred,
         RVal V = GetRVal(St, Ex);
 
         // Perform promotions.
-        V = EvalCast(V, U->getType()); 
+        // FIXME: This is the right thing to do, but it currently breaks
+        //  a bunch of tests.
+        // V = EvalCast(V, U->getType()); 
         
         if (V.isUnknownOrUndef()) {
           MakeNode(Dst, U, *I, SetRVal(St, U, V));