[cfe-commits] r77332 - in /cfe/trunk: lib/CodeGen/CGCXX.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CodeGenFunction.h test/CodeGenCXX/constructor-init.cpp
clattner at apple.com
Wed Jul 29 10:53:26 PDT 2009
On Jul 29, 2009, at 8:56 AM, Fariborz Jahanian wrote:
>> It would basically be:
>> if (PointerType *PT = X->getAsPointerType())
>> if (RecordType *RT = PT->getPointeeType()->getAsRecordType())
>> return dyn_cast<CXXRecordDecl>(RT);
>> return 0;
>> Please make use of this helper in various other places, it seems
>> that it could significantly simplify a lot of the code you've been
>> working on lately.
> All are now done. Latest being in: http://llvm.org/viewvc/llvm-project?view=rev&revision=77458
very nice, thanks Fariborz!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits