[PATCH] D26645: Add a file magic for CL.exe's object file created with /GL.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 17:01:25 PST 2016


pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lib/Support/Path.cpp:998
+          return file_magic::coff_object;
+        if (memcmp(Start, COFF::ClGlObjMagic, sizeof(COFF::BigObjMagic)) == 0)
+          return file_magic::coff_cl_gl_object;
----------------
It doesn't really matter, but `sizeof(COFF::ClGlObjMagic)` here.


https://reviews.llvm.org/D26645





More information about the llvm-commits mailing list