1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[OpenMP] Fix unused variable

This commit is contained in:
Kadir Cetinkaya 2020-02-10 13:38:58 +01:00
parent d2e05a881f
commit aee66e3ccd

View File

@ -753,8 +753,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::EmitOMPInlinedRegion(
// If we are skipping the region of a non conditional, remove the exit
// block, and clear the builder's insertion point.
BasicBlock *IPBB = SplitPos->getParent();
assert(IPBB == ExitBB && "Unexpected Insertion point location!");
assert(SplitPos->getParent() == ExitBB &&
"Unexpected Insertion point location!");
if (!Conditional && SkipEmittingRegion) {
ExitBB->eraseFromParent();
Builder.ClearInsertionPoint();