[PATCH] MS asm: Filter out fpsw clobbers

Reid Kleckner rnk at google.com
Wed Mar 26 17:04:26 PDT 2014



================
Comment at: lib/Parse/ParseStmt.cpp:2216-2217
@@ +2215,4 @@
+  // fpsr as clobbers.
+  auto End = std::remove_if(Clobbers.begin(), Clobbers.end(),
+                            [&](const std::string &s) { return s == "fpsw"; });
+  Clobbers.erase(End, Clobbers.end());
----------------
Benjamin Kramer wrote:
> std::remove should be sufficient here :)
Yep!  Thanks.


http://llvm-reviews.chandlerc.com/D2993

BRANCH
  fpsw

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list