Skip to content

Conversation

@vitalybuka
Copy link
Collaborator

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

Created using spr 1.3.4
@vitalybuka vitalybuka requested a review from joaosaffran January 6, 2025 22:48
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:codegen IR generation bugs: mangling, exceptions, etc. labels Jan 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 6, 2025

@llvm/pr-subscribers-clang-codegen

@llvm/pr-subscribers-clang

Author: Vitaly Buka (vitalybuka)

Changes

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


Full diff: https://github.com/llvm/llvm-project/pull/121852.diff

1 Files Affected:

  • (modified) clang/lib/CodeGen/CodeGenFunction.cpp (+4-1)
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;
   }
 }
 

Copy link
Contributor

@joaosaffran joaosaffran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this

@vitalybuka vitalybuka merged commit 1a435fe into main Jan 6, 2025
7 of 8 checks passed
@vitalybuka vitalybuka deleted the users/vitalybuka/spr/hlsl-fix-build-warning-after-116331 branch January 6, 2025 22:50
llvm-beanz added a commit to llvm-beanz/llvm-project that referenced this pull request Jan 8, 2025
llvm-beanz added a commit that referenced this pull request Jan 8, 2025
joaosaffran pushed a commit to joaosaffran/llvm-project that referenced this pull request Jan 8, 2025
joaosaffran added a commit that referenced this pull request Jan 13, 2025
- Adding the changes from PRs: 
  - #116331 
  - #121852 
- Fixes test `tools/dxil-dis/debug-info.ll`
- Address some missed comments in the previous PR

---------

Co-authored-by: joaosaffran <[email protected]>
kazutakahirata pushed a commit to kazutakahirata/llvm-project that referenced this pull request Jan 13, 2025
…122157)

- Adding the changes from PRs: 
  - llvm#116331 
  - llvm#121852 
- Fixes test `tools/dxil-dis/debug-info.ll`
- Address some missed comments in the previous PR

---------

Co-authored-by: joaosaffran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:codegen IR generation bugs: mangling, exceptions, etc. clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants