Skip to content

Commit e552366

Browse files
committed
Merging r353142:
------------------------------------------------------------------------ r353142 | ctopper | 2019-02-05 07:13:14 +0100 (Tue, 05 Feb 2019) | 13 lines [X86] Change MS inline asm clobber list filter to check for 'fpsr' instead of 'fpsw' after D57641. Summary: The backend used to print the x87 FPSW register as 'fpsw', but gcc inline asm uses 'fpsr'. After D57641, the backend now uses 'fpsr' to match. Reviewers: rnk Reviewed By: rnk Subscribers: eraman, cfe-commits, llvm-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57642 ------------------------------------------------------------------------ llvm-svn: 353819
1 parent 018cd5f commit e552366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseStmtAsm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
637637
// Filter out "fpsw" and "mxcsr". They aren't valid GCC asm clobber
638638
// constraints. Clang always adds fpsr to the clobber list anyway.
639639
llvm::erase_if(Clobbers, [](const std::string &C) {
640-
return C == "fpsw" || C == "mxcsr";
640+
return C == "fpsr" || C == "mxcsr";
641641
});
642642

643643
// Build the vector of clobber StringRefs.

0 commit comments

Comments
 (0)