[llvm-branch-commits] [llvm] 616f978 - Fix build issue caused by 9b76160e53f67008ff21095098129a2949595a06

David Sherwood via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 11 01:48:52 PST 2020


Author: David Sherwood
Date: 2020-12-11T09:43:55Z
New Revision: 616f9781af076942c177abcb7041761924757ea6

URL: https://github.com/llvm/llvm-project/commit/616f9781af076942c177abcb7041761924757ea6
DIFF: https://github.com/llvm/llvm-project/commit/616f9781af076942c177abcb7041761924757ea6.diff

LOG: Fix build issue caused by 9b76160e53f67008ff21095098129a2949595a06

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/TargetTransformInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index abaf07fad3d4..3ba77c9a8dc9 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -246,8 +246,6 @@ class TargetTransformInfo {
     case TCK_SizeAndLatency:
       Cost = getUserCost(I, kind);
       break;
-    default:
-      llvm_unreachable("Unknown instruction cost kind");
     }
     if (Cost == -1)
       Cost.setInvalid();


        


More information about the llvm-branch-commits mailing list