[cfe-dev] Type>>isObjCInterfaceType() blows up
Emerson Murphy-Hill
emerson at apple.com
Fri Apr 18 10:52:02 PDT 2008
Ahoy!
I'm trying to determine the SourceLocation of an Objective-C instance
variable's type, if there is one. This seemed like a reasonable way
to start:
clang::ObjCIvarDecl* iVar = ... //your ivar here...
clang::Type* t = iVar->getType().getTypePtr();
t->isObjCInterfaceType();
Unfortunately, I get an EXC_BAD_ACCESS on the final line. For the
test case I'm working on, I would have expected it to simply return
false, since my ivar is an int.
Thanks in advance,
Emerson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080418/53bbbe0f/attachment.html>
More information about the cfe-dev
mailing list