[cfe-commits] r46883 - /cfe/trunk/Analysis/RValues.cpp
Ted Kremenek
kremenek at apple.com
Thu Feb 7 23:14:59 PST 2008
Author: kremenek
Date: Fri Feb 8 01:14:58 2008
New Revision: 46883
URL: http://llvm.org/viewvc/llvm-project?rev=46883&view=rev
Log:
Implemented transfer functions for "<<" and ">>" when the RValues are
ConcreteInts.
Modified:
cfe/trunk/Analysis/RValues.cpp
Modified: cfe/trunk/Analysis/RValues.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/RValues.cpp?rev=46883&r1=46882&r2=46883&view=diff
==============================================================================
--- cfe/trunk/Analysis/RValues.cpp (original)
+++ cfe/trunk/Analysis/RValues.cpp Fri Feb 8 01:14:58 2008
@@ -211,13 +211,11 @@
case BinaryOperator::Sub:
return ValMgr.getValue( V1 - V2 );
-#if 0
case BinaryOperator::Shl:
- return ValMgr.getValue( V1 << V2 );
+ return ValMgr.getValue( V1.operator<<( (unsigned) V2.getZExtValue() ));
case BinaryOperator::Shr:
- return ValMgr.getValue( V1 >> V2 );
-#endif
+ return ValMgr.getValue( V1.operator>>( (unsigned) V2.getZExtValue() ));
case BinaryOperator::LT:
return ValMgr.getTruthValue( V1 < V2 );
More information about the cfe-commits
mailing list