[PATCH] D90916: [DebugInfo] Emit locations for large constant integers

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 04:43:23 PST 2020


SouraVX added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp:245
   int NumBytes = API.getBitWidth() / 8;
-  if (NumBytes == 4 /*float*/ || NumBytes == 8 /*double*/) {
+  if (NumBytes <= 8 /*double*/) {
     // FIXME: Add support for `long double`.
----------------
NIT: Trival braces ?
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90916



More information about the llvm-commits mailing list