Fixed by f79c29b.

Paulo, thanks for the test cases!

- Yang

On 7/10/12 12:49 AM, Paulo De Oliveira Cantante De Matos wrote:
Sorry but it seems today I am hitting them all.

2 crashes, both generated by something like (so might be some bug, or not...):
clang_delta: /home/pm18/llvm/tools/clang/lib/Rewrite/Rewriter.cpp:212: unsigned int 
clang::Rewriter::getLocationOffsetAndFileID(clang::SourceLocation, clang::FileID&) const: 
Assertion `Loc.isValid()&&  "Invalid location"' failed.
Stack dump:
0.<eof>  parser at end of file
sh: line 1: 19377 Aborted                 /home/pm18/local/libexec/clang_delta 
--transformation=remove-unused-var --counter=7 t445.c>  /tmp/fileBj2X0w


=======================================


Crash files attached.

Paulo Matos



Member of the CSR plc group of companies. CSR plc registered in England and 
Wales, registered number 4187346, registered office Churchill House, Cambridge 
Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at 
http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog

Reply via email to