[cfe-dev] Objective-C tidy up

Chris Lattner clattner at apple.com
Sun Jun 8 10:42:35 PDT 2008


On Jun 8, 2008, at 10:30 AM, David Chisnall wrote:
>>> It should be working now (does for me, at least...).  Assignments  
>>> to self were failing because implicit params are not valdecls and  
>>> I missed a test.
>>
>> Getting closer!  We now just have the NSString.m failure:
>>
>> /Users/sabre/llvm/tools/clang/lib/Analysis/../../include/clang/ 
>> Analysis/Visitors/CFGRecStmtDeclVisitor.h:66: failed assertion  
>> `false && "Subtype of ScopedDecl not handled."'
>
> I think this is fixed, but since this test only runs on OS X I can't  
> test it...

Thanks!  This gets it onto the next assertion:

/Users/sabre/llvm/tools/clang/lib/Analysis/../../include/clang/ 
Analysis/Support/ExprDeclBitVector.h:41: failed assertion `isValid()'

Here's a .mi file.  Run with -checker-cfref -verify.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: NSString.mi.gz
Type: application/x-gzip
Size: 12565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080608/b80064e6/attachment.bin>
-------------- next part --------------



It would probably be useful to grep for other uses of VarDecl and  
ParamVarDecl to see if the code applies to self as well.  There may be  
other codepaths not being exercised by the testsuite.

-Chris




More information about the cfe-dev mailing list