[cfe-commits] r59889 - /cfe/trunk/lib/AST/ExprConstant.cpp

Anders Carlsson andersca at mac.com
Sat Nov 22 14:56:32 PST 2008


Author: andersca
Date: Sat Nov 22 16:56:32 2008
New Revision: 59889

URL: http://llvm.org/viewvc/llvm-project?rev=59889&view=rev
Log:
Return false if we encounter a type we can't handle.

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=59889&r1=59888&r2=59889&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Sat Nov 22 16:56:32 2008
@@ -1176,7 +1176,8 @@
   } else if (getType()->isComplexType()) {
     if (!EvaluateComplexFloat(this, Result, Info))
       return false;
-  }    
+  }  else
+    return false;
 
   if (isEvaluated)
     *isEvaluated = Info.isEvaluated;





More information about the cfe-commits mailing list