[Lldb-commits] [clang] [lldb] [llvm] [llvm][TargetParser] Return StringMap from getHostCPUFeatures (PR #97824)

Nikita Popov via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 9 08:46:14 PDT 2024


================
@@ -20,16 +20,15 @@ using namespace llvm;
 int main(int argc, char **argv) {
 #if defined(__i386__) || defined(_M_IX86) || \
     defined(__x86_64__) || defined(_M_X64)
-  StringMap<bool> features;
-
-  if (!sys::getHostCPUFeatures(features))
+  const < StringMap<bool> features = sys::getHostCPUFeatures(features);
----------------
nikic wrote:

I think something went wrong here...

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


More information about the lldb-commits mailing list