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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 03:05:52 PDT 2019


Author: maskray
Date: Thu May 30 03:05:52 2019
New Revision: 362079

URL: http://llvm.org/viewvc/llvm-project?rev=362079&view=rev
Log:
Revert "asm goto: fix out-of-bounds read of Constraints after rC362045"

It was fixed by rC362062.

Modified:
    cfe/trunk/lib/Parse/ParseStmtAsm.cpp

Modified: cfe/trunk/lib/Parse/ParseStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmtAsm.cpp?rev=362079&r1=362078&r2=362079&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseStmtAsm.cpp (original)
+++ cfe/trunk/lib/Parse/ParseStmtAsm.cpp Thu May 30 03:05:52 2019
@@ -846,7 +846,6 @@ StmtResult Parser::ParseAsmStatement(boo
       ExprResult Res =
           Actions.ActOnAddrLabel(Tok.getLocation(), Tok.getLocation(), LD);
       Exprs.push_back(Res.get());
-      Constraints.emplace_back();
       NumLabels++;
       ConsumeToken();
       if (!TryConsumeToken(tok::comma))




More information about the cfe-commits mailing list