Parcourir la source

Use .at() per feedback.

Tex Riddell il y a 6 ans
Parent
commit
ff9d11be9d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;