[llvm] r175422 - [ms-inline asm] Fix undefined behavior to reset hasMSInlineAsm in advance of SelectAllBasicBlocks().

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 17 23:06:48 PST 2013


Author: chapuni
Date: Mon Feb 18 01:06:48 2013
New Revision: 175422

URL: http://llvm.org/viewvc/llvm-project?rev=175422&view=rev
Log:
[ms-inline asm] Fix undefined behavior to reset hasMSInlineAsm in advance of SelectAllBasicBlocks().

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=175422&r1=175421&r2=175422&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Feb 18 01:06:48 2013
@@ -372,6 +372,7 @@ bool SelectionDAGISel::runOnMachineFunct
 
   SDB->init(GFI, *AA, LibInfo);
 
+  MF->setHasMSInlineAsm(false); // FIXME: This affected hasFP().
   SelectAllBasicBlocks(Fn);
 
   // If the first basic block in the function has live ins that need to be





More information about the llvm-commits mailing list