[PATCH] MS asm: Filter out fpsw clobbers
Benjamin Kramer
benny.kra at gmail.com
Thu Mar 6 15:43:00 PST 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());
----------------
std::remove should be sufficient here :)
http://llvm-reviews.chandlerc.com/D2993
More information about the cfe-commits
mailing list