2
0
Эх сурвалжийг харах

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

Tristan Labelle 6 жил өмнө
parent
commit
bf16c91cb7

+ 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();
   }