diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index aea14306c773bd7488ae01fbbbeccfe7e438f32e..65b98395f0e2274115e82e19d286e1dbd859cdb0 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -4939,8 +4939,8 @@ public:
     default: break;
     case 'l': // r0-r7
     case 'h': // r8-r15
-    case 'w': // VFP Floating point register single precision
-    case 'P': // VFP Floating point register double precision
+    case 't': // VFP Floating point register single precision
+    case 'w': // VFP Floating point register double precision
       Info.setAllowsRegister();
       return true;
     case 'I':