From: Benjamin Kramer Date: Tue, 9 Oct 2012 20:49:29 +0000 (+0000) Subject: Initialize the end loc in ObjCInterfaceTypeLoc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c2fd0d71406c5f311ff00208448a63fa9071453;p=clang Initialize the end loc in ObjCInterfaceTypeLoc. Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165546 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index ff29e44bf9..60cd3064e7 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -866,6 +866,7 @@ public: void initializeLocal(ASTContext &Context, SourceLocation Loc) { setNameLoc(Loc); + setNameEndLoc(Loc); } };