summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorJennifer Yu <jennifer.yu@intel.com>2019-06-03 15:57:25 +0000
committerJennifer Yu <jennifer.yu@intel.com>2019-06-03 15:57:25 +0000
commitb8fee677bf8e2d6444c556293d6b77fb876654e4 (patch)
treeed4000a2c2b2a53c7e8361c911183262f335eaa4 /clang/lib/AST/StmtProfile.cpp
parent5099aef86964c4b845d9165b9328e6e8e30fc8a3 (diff)
downloadbcm5719-llvm-b8fee677bf8e2d6444c556293d6b77fb876654e4.tar.gz
bcm5719-llvm-b8fee677bf8e2d6444c556293d6b77fb876654e4.zip
Re-check in clang support gun asm goto after fixing tests.
llvm-svn: 362410
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 93bdcac8b54..c5da5bfda9c 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -321,6 +321,9 @@ void StmtProfiler::VisitGCCAsmStmt(const GCCAsmStmt *S) {
ID.AddInteger(S->getNumClobbers());
for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
VisitStringLiteral(S->getClobberStringLiteral(I));
+ ID.AddInteger(S->getNumLabels());
+ for (auto *L : S->labels())
+ VisitDecl(L->getLabel());
}
void StmtProfiler::VisitMSAsmStmt(const MSAsmStmt *S) {
OpenPOWER on IntegriCloud