Browse Source

Use .at() per feedback.

Tex Riddell 6 năm trước cách đây
mục cha
commit
ff9d11be9d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;