Skip to content

Commit e54230c

Browse files
committed
fix some comments
1 parent ca4c69c commit e54230c

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

tools/clang/lib/CodeGen/CGHLSLMSFinishCodeGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ void TranslateRayQueryConstructor(HLModule &HLM) {
28542854
llvm::IRBuilder<> Builder(CI);
28552855
llvm::Value *rayFlags =
28562856
Builder.getInt32(SA->GetTemplateArgAnnotation(0).GetIntegral());
2857-
// this could be a nullptr assignment if there is no 2nd template arg
2857+
// the default val of 0 will be assigned if there is no 2nd template arg
28582858
llvm::Value *rayQueryFlags =
28592859
Builder.getInt32(SA->GetTemplateArgAnnotation(1).GetIntegral());
28602860

tools/clang/test/CodeGenHLSL/allocateRayQuery2-lower.hlsl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// CHECK: %"class.RayQuery<1024, 1>" = type { i32 }
44
// CHECK: %"class.RayQuery<1, 0>" = type { i32 }
55

6-
7-
8-
96
RaytracingAccelerationStructure RTAS;
10-
// DXR entry point to ensure RDAT flags match during validation.
117
[shader("vertex")]
128
void main(RayDesc rayDesc : RAYDESC) {
139

tools/clang/test/CodeGenHLSL/allocateRayQuery2.hlsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %dxc -T lib_6_9 %s | FileCheck %s
22

33
RaytracingAccelerationStructure RTAS;
4-
// DXR entry point to ensure RDAT flags match during validation.
54
[shader("vertex")]
65
void main(RayDesc rayDesc : RAYDESC) {
76

0 commit comments

Comments
 (0)