[LLVMbugs] [Bug 20590] New: trunk/llvm/lib/Transforms/Scalar/SROA.cpp: 2 * init error ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 8 02:01:43 PDT 2014


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: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140808/9af03fd1/attachment.html>


More information about the llvm-bugs mailing list