Browse Source

Put the original block back, #if 0'ed out

Tristan Labelle 6 năm trước cách đây
mục cha
commit
bf16c91cb7
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      lib/Transforms/Scalar/SROA.cpp

+ 8 - 0
lib/Transforms/Scalar/SROA.cpp

@@ -4467,6 +4467,14 @@ void SROA::deleteDeadInstructions(
           DeadInsts.insert(U);
       }
 
+#if 0 // HLSL Change - blocked moved before replaceAllUsesWith
+    if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) {
+      DeletedAllocas.insert(AI);
+      if (DbgDeclareInst *DbgDecl = FindAllocaDbgDeclare(AI))
+        DbgDecl->eraseFromParent();
+    }
+#endif // HLSL Change
+
     ++NumDeleted;
     I->eraseFromParent();
   }