implement full sema support for the GCC address-of-label extension.
llvm-svn: 39510
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index a7f47a8..93e97be 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -484,8 +484,7 @@
if (I->second->getSubStmt() == 0) {
LabelStmt *L = I->second;
// Emit error.
- Diag(L->getIdentLoc(), diag::err_undeclared_label_use,
- L->getLabel()->getName());
+ Diag(L->getIdentLoc(), diag::err_undeclared_label_use, L->getName());
// At this point, we have gotos that use the bogus label. Stitch it into
// the function body so that they aren't leaked and that the AST is well