瀏覽代碼

Use .at() per feedback.

Tex Riddell 6 年之前
父節點
當前提交
ff9d11be9d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;