cor3ntin added inline comments.

================
Comment at: clang/lib/AST/Interp/Function.h:180
+    // FIXME: Is there a better way to get this information?
+    if (getName() == "__builtin_isnan")
+      return true;
----------------
You can compare getBuiltinID(), which is better than using strings, it's what 
we seem to be doing elsewhere


================
Comment at: clang/lib/AST/Interp/InterpBuiltin.cpp:169
+  // refactor this into a different function that checks things are valid.
+  const Floating &Arg = S.Stk.peek<Floating>();
+
----------------
There are only a few functions created by SemaBuiltinFPClassification - only 
two of which are not unary. this looks fine, fpclassify and isfpclass can have 
their own logic.
I don't suppose there is a way to assert we have one argument there?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155369

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to