[PATCH] D20988: [cpu-detection] Substantial refactor of Host CPU detection code (x86)

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 16:42:00 PDT 2016


sanjoy added a subscriber: sanjoy.

================
Comment at: llvm/trunk/lib/Support/Host.cpp:659
@@ +658,3 @@
+    default:
+      break;
+    }
----------------
I think there is a bug here.  The `break;` will only break out of the inner switch, and for an unknown model of `"amdfam10"`, we'll set the type to `AMDFAM14H`.


Repository:
  rL LLVM

http://reviews.llvm.org/D20988





More information about the llvm-commits mailing list