Skip to content
Snippets Groups Projects
  1. Dec 03, 2018
  2. Nov 26, 2018
    • Neil Henning's avatar
      Add conversion folding when the source is a constant. · 81a63f1d
      Neil Henning authored
      This change adds unary conversion folding when the source is a constant.
      This fixes an ISV issue whereby:
      
      ```
      const float16_t f = float16_t(42.0);
      ```
      
      Wouldn't compile because the conversion operator would always produce an
      EvqTemporary when it could have produced an EvqConst.
      
      I've also added a test case that proves out that all basic-type to
      basic-type conversions work.
      81a63f1d
Loading