[llvm] [InlineAsm] refactor InlineAsm class NFC (PR #65649)

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 11:32:43 PDT 2023


================
@@ -116,8 +116,7 @@ void CSKYDAGToDAGISel::Select(SDNode *N) {
 
 bool CSKYDAGToDAGISel::selectInlineAsm(SDNode *N) {
   std::vector<SDValue> AsmNodeOperands;
-  unsigned Flag;
-  InlineAsm::Kind Kind;
+  InlineAsm::Flag Flag(0);
----------------
bwendling wrote:

Maybe instead of using `0` here you could have a default c'tor that will zero out the fields instead. The `0` just looks a bit weird here.

https://github.com/llvm/llvm-project/pull/65649


More information about the llvm-commits mailing list