[clang] 6280bb4 - [clang] Remove redundant condition (NFC).

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 12 12:14:44 PST 2021


Author: Florian Hahn
Date: 2021-02-12T20:14:24Z
New Revision: 6280bb4cd80e39b0e54b1c8dd091f2b7175381eb

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

LOG: [clang] Remove redundant condition (NFC).

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index ff9875167ba5..296e4e89a1c0 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -510,9 +510,6 @@ class CodeGenFunction : public CodeGenTypeCache {
     if (CGM.getCodeGenOpts().getFiniteLoops() ==
         CodeGenOptions::FiniteLoopsKind::Never)
       return false;
-    if (CGM.getCodeGenOpts().getFiniteLoops() ==
-        CodeGenOptions::FiniteLoopsKind::Never)
-      return false;
 
     return getLangOpts().CPlusPlus11 || getLangOpts().CPlusPlus14 ||
            getLangOpts().CPlusPlus17 || getLangOpts().CPlusPlus20;


        


More information about the cfe-commits mailing list