mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
Fix a really nasty bug with the -disable-ds-field-sensitivity option
llvm-svn: 13681
This commit is contained in:
parent
89353483d6
commit
0e1a543d88
@ -130,6 +130,9 @@ namespace {
|
||||
DSNode *createNode(const Type *Ty = 0) {
|
||||
DSNode *N = new DSNode(Ty, &G); // Create the node
|
||||
if (DisableFieldSensitivity) {
|
||||
// Create node handle referring to the old node so that it is
|
||||
// immediately removed from the graph when the node handle is destroyed.
|
||||
DSNodeHandle OldNNH = N;
|
||||
N->foldNodeCompletely();
|
||||
if (DSNode *FN = N->getForwardNode())
|
||||
N = FN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user