http://llvm.org/bugs/show_bug.cgi?id=20590

            Bug ID: 20590
           Summary: trunk/llvm/lib/Transforms/Scalar/SROA.cpp: 2 * init
                    error ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

1.

[trunk/llvm/lib/Transforms/Scalar/SROA.cpp:2053]: (error) Member variable
'NewAI' is initialized by itself.

  SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &S)
      : PtrUseVisitor<SliceBuilder>(DL),
        AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), S(S) {}

Suggest rename parameter S to something else.

2.

[trunk/llvm/lib/Transforms/Scalar/SROA.cpp:348]: (error) Member variable 'S' is
initialized by itself.

  SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &S)
      : PtrUseVisitor<SliceBuilder>(DL),
        AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), S(S) {}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to