[cfe-commits] r75750 - /cfe/trunk/lib/Analysis/Store.cpp
xuzhongxing at gmail.com
Tue Jul 14 23:21:18 PDT 2009
Date: Wed Jul 15 01:21:18 2009
New Revision: 75750
rewrite the logic to make it follow the comments more closely.
--- cfe/trunk/lib/Analysis/Store.cpp (original)
+++ cfe/trunk/lib/Analysis/Store.cpp Wed Jul 15 01:21:18 2009
@@ -248,7 +248,8 @@
// The only exception is if the original region had a location type as its
// value type we always want to treat the region as binding to a location.
// This issue can arise when pointers are casted to integers and back.
- if (!Loc::IsLocType(T) || Loc::IsLocType(NewT))
+ if (!(Loc::IsLocType(T) && !Loc::IsLocType(NewT)))
T = NewT;
More information about the cfe-commits