Pārlūkot izejas kodu

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

Tristan Labelle 6 gadi atpakaļ
vecāks
revīzija
bf16c91cb7
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  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();
   }