Author: sfider
Date: Tue Nov 16 02:50:38 2010
New Revision: 119341
URL: http://llvm.org/viewvc/llvm-project?rev=119341&view=rev
Log:
Refactored GRExprEngine::getCXXThisRegion to use CXXMethodDecl::getThisType
instead of calculating it by hand.
Modified:
cfe/trunk/lib/Checker/GRCXXExprEngine.cpp
Modified: cfe/trunk/lib/Checker/GRCXXExprEngine.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/GRCXXExprEngine.cpp?rev=119341&r1=119340&r2=119341&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/GRCXXExprEngine.cpp (original)
+++ cfe/trunk/lib/Checker/GRCXXExprEngine.cpp Tue Nov 16 02:50:38 2010
@@ -66,8 +66,7 @@
const CXXThisRegion *GRExprEngine::getCXXThisRegion(const CXXRecordDecl *D,
const StackFrameContext *SFC)
{
- Type *T = D->getTypeForDecl();
- QualType PT = getContext().getPointerType(QualType(T, 0));
+ QualType PT = D->getThisType(getContext());
return ValMgr.getRegionManager().getCXXThisRegion(PT, SFC);
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits