]> granicus.if.org Git - clang/commitdiff
Revert "asm goto: fix out-of-bounds read of Constraints after rC362045"
authorFangrui Song <maskray@google.com>
Thu, 30 May 2019 10:05:52 +0000 (10:05 +0000)
committerFangrui Song <maskray@google.com>
Thu, 30 May 2019 10:05:52 +0000 (10:05 +0000)
It was fixed by rC362062.

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

lib/Parse/ParseStmtAsm.cpp

index e1c48da5f2ba3b8f26be9b05312d04fe293ddc5d..75f3ac396e1a4320b632a0925317d26ef9de804f 100644 (file)
@@ -846,7 +846,6 @@ StmtResult Parser::ParseAsmStatement(bool &msAsm) {
       ExprResult Res =
           Actions.ActOnAddrLabel(Tok.getLocation(), Tok.getLocation(), LD);
       Exprs.push_back(Res.get());
-      Constraints.emplace_back();
       NumLabels++;
       ConsumeToken();
       if (!TryConsumeToken(tok::comma))