[cfe-commits] r75750 - /cfe/trunk/lib/Analysis/Store.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Jul 14 23:21:18 PDT 2009
Author: zhongxingxu
Date: Wed Jul 15 01:21:18 2009
New Revision: 75750
URL: http://llvm.org/viewvc/llvm-project?rev=75750&view=rev
Log:
rewrite the logic to make it follow the comments more closely.
Modified:
cfe/trunk/lib/Analysis/Store.cpp
Modified: cfe/trunk/lib/Analysis/Store.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Store.cpp?rev=75750&r1=75749&r2=75750&view=diff
==============================================================================
--- 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
mailing list