Quellcode durchsuchen

Revert "asm goto: fix out-of-bounds read of Constraints after rC362045"

It was fixed by rC362062.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362079 91177308-0d34-0410-b5e6-96231b3b80d8
Fangrui Song vor 6 Jahren
Ursprung
Commit
d89b066b43
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0 1
      lib/Parse/ParseStmtAsm.cpp

+ 0 - 1
lib/Parse/ParseStmtAsm.cpp

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