소스 검색

Code cleanup.

Xiang Li 8 년 전
부모
커밋
20268a4725
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp

+ 1 - 1
lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp

@@ -1541,7 +1541,7 @@ bool SROA_HLSL::performScalarRepl(Function &F, DxilTypeSystem &typeSys) {
   // alloca. Big alloca will be split to smaller piece first, when process the
   // alloca, it will be alloca flattened from big alloca instead of a GEP of big
   // alloca.
-  auto size_cmp = [&](AllocaInst *a0, AllocaInst *a1) -> bool {
+  auto size_cmp = [&DL](const AllocaInst *a0, const AllocaInst *a1) -> bool {
     return DL.getTypeAllocSize(a0->getAllocatedType()) >
            DL.getTypeAllocSize(a1->getAllocatedType());
   };