2
0
Tex Riddell 6 жил өмнө
parent
commit
ff9d11be9d

+ 1 - 1
tools/clang/lib/CodeGen/CGHLSLMS.cpp

@@ -3043,7 +3043,7 @@ static unsigned AllocateDxilConstantBuffer(HLCBuffer &CB,
 
 
     unsigned size = C->GetRangeSize();
     unsigned size = C->GetRangeSize();
     llvm::Type *Ty = C->GetGlobalSymbol()->getType()->getPointerElementType();
     llvm::Type *Ty = C->GetGlobalSymbol()->getType()->getPointerElementType();
-    auto fieldAnnotation = constVarAnnotationMap[C->GetGlobalSymbol()];
+    auto fieldAnnotation = constVarAnnotationMap.at(C->GetGlobalSymbol());
     bool bRowMajor = HLMatrixType::isa(Ty)
     bool bRowMajor = HLMatrixType::isa(Ty)
       ? fieldAnnotation.GetMatrixAnnotation().Orientation == MatrixOrientation::RowMajor
       ? fieldAnnotation.GetMatrixAnnotation().Orientation == MatrixOrientation::RowMajor
       : false;
       : false;