[PATCH] D88194: [X86] CET endbr enhance

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 21:17:17 PDT 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1341
+
+  ArrayRef<uint8_t> Prefixs = {0x26, 0x2e, 0x36, 0x3e, 0x64,
+                               0x65, 0x66, 0x67, 0xf0, 0xf2};
----------------
This can't be an ArrayRef. The RHS is a temporary initializer_list that's lifetime ends at the end of the statement.

Use uint8_t Prefixes[] = { ... }


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

https://reviews.llvm.org/D88194



More information about the llvm-commits mailing list