[clang] 1a435fe - [HLSL] Fix build warning after #116331 (#121852)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 14:51:01 PST 2025


Author: Vitaly Buka
Date: 2025-01-06T14:50:57-08:00
New Revision: 1a435feffcd85c1e7fe30daf1a3995e95860b300

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

LOG: [HLSL] Fix build warning after #116331 (#121852)

After #116331 is always SpellingNotCalculated,
so I assume doing nothing is expected.

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 56c56f564fd09d..067ff55b87ae63 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2102,7 +2102,10 @@ void CodeGenFunction::EmitBranchOnBoolExpr(
          MDHelper.createConstant(BranchHintConstant)});
     BrInst->setMetadata("hlsl.controlflow.hint",
                         llvm::MDNode::get(CGM.getLLVMContext(), Vals));
-  } break;
+    break;
+  }
+  case HLSLControlFlowHintAttr::SpellingNotCalculated:
+    break;
   }
 }
 


        


More information about the cfe-commits mailing list