diff options
Diffstat (limited to 'lib/Analysis/Store.cpp')
-rw-r--r-- | lib/Analysis/Store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp index 49411b468e..13326ab31f 100644 --- a/lib/Analysis/Store.cpp +++ b/lib/Analysis/Store.cpp @@ -32,7 +32,7 @@ StoreManager::CastRegion(const GRState* state, const MemRegion* R, // Return the same region if the region types are compatible. if (const TypedRegion* TR = dyn_cast<TypedRegion>(R)) { - QualType Ta = Ctx.getCanonicalType(TR->getLValueType(Ctx)); + QualType Ta = Ctx.getCanonicalType(TR->getLocationType(Ctx)); if (Ta == ToTy) return CastResult(state, R); |