CTSRD-CHERI / clang

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

The capabilityness of a reference to a global, tls, or stack object should be decided by the LHS #182

Closed brooksdavis closed 6 years ago

brooksdavis commented 6 years ago

This should work in hybrid mode:

int foo;
int * __capability bar;
bar = &foo;

The required information is there to do this without a (__cheri_tocap int * __capability) cast and this is a very common pattern in a hybrid kernel.