瀏覽代碼

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 6 年之前
父節點
當前提交
d89b066b43
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      lib/Parse/ParseStmtAsm.cpp

+ 0 - 1
lib/Parse/ParseStmtAsm.cpp

@@ -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))