Skip to content
Commit e0d64978 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

In VarDecl::getSourceRange() make sure to check that the source location

of the initializer is valid before using it.

Fixes rdar://12455002&12449015 where local variables of objc objects in ARC mode
were not annotated because of the ImplicitValueInitExpr initializer having invalid
source range, resulting in the SourceRange of the VarDecl having invalid end location.

llvm-svn: 165456
parent 35315fea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment