diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-19 01:04:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-19 01:04:21 +0000 |
commit | 34d9a5189222602540fd8a20ede94bf18a294f9a (patch) | |
tree | c3275cc8f4f5997b2bdff25e314fe59359539e6f /clang/lib/Frontend/PCHWriter.cpp | |
parent | bf90b33665529d923dcdca58a1a17d4d2add7bf6 (diff) | |
download | bcm5719-llvm-34d9a5189222602540fd8a20ede94bf18a294f9a.tar.gz bcm5719-llvm-34d9a5189222602540fd8a20ede94bf18a294f9a.zip |
Add location info for indirect goto.
llvm-svn: 69497
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index 1efe70f270f..9f22f13134b 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -610,6 +610,7 @@ void PCHStmtWriter::VisitGotoStmt(GotoStmt *S) { void PCHStmtWriter::VisitIndirectGotoStmt(IndirectGotoStmt *S) { VisitStmt(S); + Writer.AddSourceLocation(S->getGotoLoc(), Record); Writer.WriteSubStmt(S->getTarget()); Code = pch::STMT_INDIRECT_GOTO; } |