summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 01:04:21 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 01:04:21 +0000
commit34d9a5189222602540fd8a20ede94bf18a294f9a (patch)
treec3275cc8f4f5997b2bdff25e314fe59359539e6f /clang/lib/Sema/SemaStmt.cpp
parentbf90b33665529d923dcdca58a1a17d4d2add7bf6 (diff)
downloadbcm5719-llvm-34d9a5189222602540fd8a20ede94bf18a294f9a.tar.gz
bcm5719-llvm-34d9a5189222602540fd8a20ede94bf18a294f9a.zip
Add location info for indirect goto.
llvm-svn: 69497
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 6595b881220..4a5facb39cc 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -666,7 +666,7 @@ Sema::ActOnGotoStmt(SourceLocation GotoLoc, SourceLocation LabelLoc,
}
Action::OwningStmtResult
-Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc,SourceLocation StarLoc,
+Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc, SourceLocation StarLoc,
ExprArg DestExp) {
// Convert operand to void*
Expr* E = DestExp.takeAs<Expr>();
@@ -676,7 +676,7 @@ Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc,SourceLocation StarLoc,
if (DiagnoseAssignmentResult(ConvTy, StarLoc, Context.VoidPtrTy, ETy,
E, "passing"))
return StmtError();
- return Owned(new (Context) IndirectGotoStmt(E));
+ return Owned(new (Context) IndirectGotoStmt(GotoLoc, E));
}
Action::OwningStmtResult
OpenPOWER on IntegriCloud