[ms-inline asm] Fix undefined behavior to reset hasMSInlineAsm in advance of SelectAl...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Feb 2013 07:06:48 +0000 (07:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Feb 2013 07:06:48 +0000 (07:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175422 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 39d3a5d143981ebc3b76175e07807b1409c35ed8..c1235a91aa28797cdae24c501c608eb84f276270 100644 (file)
@@ -372,6 +372,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
 
   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