CTSRD-CHERI / clang

DO NOT USE. Use llvm-project instead
Other
9 stars 8 forks source link

Aborted (core dumped): Ptr must be a pointer to Val type!"' failed #200

Closed heshamelmatary closed 6 years ago

heshamelmatary commented 6 years ago

clang-7.0: note: diagnostic msg: /tmp/check-04cba0.c clang-7.0: note: diagnostic msg: /tmp/check-04cba0.sh

arichardson commented 6 years ago

Reduced test case:

// RUN: %clang_cc1 -triple cheri-none--elf -fmath-errno -no-integrated-as -nostdsysteminc -target-cpu mips64 -target-abi purecap -v -ffunction-sections -fdata-sections -fcolor-diagnostics -o - -O0 -O0 -emit-llvm -disable-O0-optnone  %s
void a() { void *b = __builtin_frame_address(0); }