|
@@ -1207,6 +1207,7 @@ void CodeGenFunction::EmitBreakStmt(const BreakStmt &S) {
|
|
|
assert(EHStack.getInnermostActiveNormalCleanup() == EHStack.stable_end() && "HLSL Shouldn't need cleanups");
|
|
|
CGM.getHLSLRuntime().EmitHLSLCondBreak(*this, CurFn, BreakContinueStack.back().BreakBlock.getBlock(),
|
|
|
BreakContinueStack.back().ContinueBlock.getBlock());
|
|
|
+ Builder.ClearInsertionPoint();
|
|
|
} else
|
|
|
// HLSL Change End - incorporate unconditional branch blocks into loops
|
|
|
EmitBranchThroughCleanup(BreakContinueStack.back().BreakBlock);
|