[llvm] bb50454 - [OpenMP] Fix unused variable

Kadir Cetinkaya via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 04:47:31 PST 2020


Author: Kadir Cetinkaya
Date: 2020-02-10T13:47:20+01:00
New Revision: bb5045429545f47a76980864322a637c31594c7f

URL: https://github.com/llvm/llvm-project/commit/bb5045429545f47a76980864322a637c31594c7f
DIFF: https://github.com/llvm/llvm-project/commit/bb5045429545f47a76980864322a637c31594c7f.diff

LOG: [OpenMP] Fix unused variable

Added: 
    

Modified: 
    llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 554b49a406ef..4284eb306ee9 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -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();


        


More information about the llvm-commits mailing list