[PATCH] D83082: [Alignment][NFC] Use proper getter to retrieve alignment from ConstantInt and ConstantSDNode

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 5 18:07:57 PDT 2020


sbc100 added a comment.

Yup, it doesn't happen if I remove the ability for clang to determine the actual value.  e.g: this version does not cause the crash:

  #include <stdlib.h>
  #include <assert.h>
  
  int align = 3;
  
  int main() {
    void * ptr = aligned_alloc(align, 64);
    assert(ptr == NULL);
    return 0;
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83082/new/

https://reviews.llvm.org/D83082





More information about the llvm-commits mailing list