From d8e6d6da90fd5a715c9e5cb676abbb8c3878c85a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 19 Mar 2013 14:32:23 +0000 Subject: Revert r177329. If this should not happen, we should have an assert. If it should happen, we should have a test and remove the comment. In no case should we have this self inconsistent code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177399 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/TargetInfo.cpp') diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 193121b2de..556999f61b 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -4323,8 +4323,7 @@ public: CodeGen::CodeGenModule &CGM) const { const FunctionDecl *FD = dyn_cast(D); if (!FD) return; - llvm::Function *Fn = dyn_cast(GV); - if (!Fn) return; // should not happen + llvm::Function *Fn = cast(GV); if (FD->hasAttr()) { Fn->addFnAttr("mips16"); } -- cgit v1.2.3-70-g09d2