diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-03-16 00:01:55 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-03-16 00:01:55 +0000 |
| commit | a7e57ace28f80c195c31542697f266904f76e41e (patch) | |
| tree | feac0d40c94a2818b070ca7dec9b83bf06cf9ee5 /llvm | |
| parent | 7734ca28917ffe141bddd3dd2f884a9fd04c77c7 (diff) | |
| download | bcm5719-llvm-a7e57ace28f80c195c31542697f266904f76e41e.tar.gz bcm5719-llvm-a7e57ace28f80c195c31542697f266904f76e41e.zip | |
Revert r152613 (and r152614), "Inline the d'tor and add an anchor instead." for workaround of g++-4.4's miscompilation.
It caused MSP430DAGToDAGISel::SelectIndexedBinOp() to be miscompiled.
When two ReplaceUses()'s are expanded as inline, vtable in base class is stored to latter (ISelUpdater)ISU.
llvm-svn: 152877
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 3 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index c101473c8ba..f921ca20be0 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -820,9 +820,8 @@ public: /// the DAG can optionally implement this interface. This allows the clients /// to handle the various sorts of updates that happen. class DAGUpdateListener { - virtual void anchor(); public: - virtual ~DAGUpdateListener() {} + virtual ~DAGUpdateListener(); /// NodeDeleted - The node N that was deleted and, if E is not null, an /// equivalent node E that replaced it. diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 5111daea25b..34659bb1a41 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -70,7 +70,7 @@ static const fltSemantics *EVTToAPFloatSemantics(EVT VT) { } } -void SelectionDAG::DAGUpdateListener::anchor() {} +SelectionDAG::DAGUpdateListener::~DAGUpdateListener() {} //===----------------------------------------------------------------------===// // ConstantFPSDNode Class |

