[PATCH] D33084: [GISel]: Fix undefined behavior while accessing DefaultAction map

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 03:04:47 PDT 2017


dsanders added inline comments.


================
Comment at: include/llvm/CodeGen/GlobalISel/LegalizerInfo.h:159
+        if (DefaultIt == DefaultActions.end())
+          return LLT();
+        Action = DefaultIt->second;
----------------
I'm not sure about this bit. Are the callers expecting to deal with an invalid LLT?


Repository:
  rL LLVM

https://reviews.llvm.org/D33084





More information about the llvm-commits mailing list