Explorar o código

Use .at() per feedback.

Tex Riddell %!s(int64=6) %!d(string=hai) anos
pai
achega
ff9d11be9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/clang/lib/CodeGen/CGHLSLMS.cpp

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

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