https://llvm.org/bugs/show_bug.cgi?id=23990

            Bug ID: 23990
           Summary: [MS ABI] Clang crashes emitting array delete
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

consider:
struct S {
  int x;
  void *operator new[](size_t);
  void operator delete[](void *p, size_t);
};
void f(S *s) { delete [] s; }

we crash in CallArrayDelete::Emit because we are trying to multiple by
NumElements.  However, NumElements is null because we decided we didn't need an
array cookie.

-- 
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