]> granicus.if.org Git - clang/commitdiff
Initialize the end loc in ObjCInterfaceTypeLoc.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 9 Oct 2012 20:49:29 +0000 (20:49 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 9 Oct 2012 20:49:29 +0000 (20:49 +0000)
Found by valgrind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165546 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TypeLoc.h

index ff29e44bf974c4c35f339fc498c80ff1ec834e87..60cd3064e778ad0ace738d00ed2761d74d4e7c28 100644 (file)
@@ -866,6 +866,7 @@ public:
 
   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
     setNameLoc(Loc);
+    setNameEndLoc(Loc);
   }
 };