Author: d0k
Date: Tue Oct 9 15:49:29 2012
New Revision: 165546
URL: http://llvm.org/viewvc/llvm-project?rev=165546&view=rev
Log:
Initialize the end loc in ObjCInterfaceTypeLoc.
Found by valgrind.
Modified:
cfe/trunk/include/clang/AST/TypeLoc.h
Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=165546&r1=165545&r2=165546&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Tue Oct 9 15:49:29 2012
@@ -866,6 +866,7 @@
void initializeLocal(ASTContext &Context, SourceLocation Loc) {
setNameLoc(Loc);
+ setNameEndLoc(Loc);
}
};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits