<div dir="ltr"><div>Hi All,</div><div><br></div><div>Clang pop up with the  "error: invalid integral value" diagnostics  twice ,when you enable the optimization  through  -O with a  non-integer value  i.e -O<non integer>  as show below</div>
<div><br></div><div>$ clang -Of -S test.c</div><div>error: invalid integral value 'f' in '-Of'</div><div>error: invalid integral value 'f' in '-Of'</div><div><br></div><div><br></div><div>Attached patch fix the issue as</div>
<div><br></div><div>$ clang -Of -S test.c</div><div>error: invalid integral value 'f' in '-Of'</div><div><br></div><div><br></div><div>Clang version </div><div><span class="" style="white-space:pre">       </span>clang version 3.4 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 26297f57634994b4ae47a0774c372d6944265bb2) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> <span class="" style="white-space:pre">              </span>868e74bdce7a2c49d60e2ef56a077b0aa7f2ba08)</div>
<div><br></div><div><span class="" style="white-space:pre">   </span>Target: i386-pc-linux-gnu</div><div><span class="" style="white-space:pre">  </span>Thread model: posix</div><div><br></div><div>Builded successfully on trunk and is it ok to commit ??</div>
<div><br></div><div><br></div><div>Thanks </div><div>~Umesh</div><div> </div><div><br></div></div>