diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-19 14:32:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-19 14:32:23 +0000 |
commit | d8e6d6da90fd5a715c9e5cb676abbb8c3878c85a (patch) | |
tree | 22198e058e2db675a4b96b9a8b5d48b9eb188e16 | |
parent | ccc45d2e9336d3177268ed9e23e5f5fad5e8ff2b (diff) |
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
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<FunctionDecl>(D); if (!FD) return; - llvm::Function *Fn = dyn_cast<llvm::Function>(GV); - if (!Fn) return; // should not happen + llvm::Function *Fn = cast<llvm::Function>(GV); if (FD->hasAttr<Mips16Attr>()) { Fn->addFnAttr("mips16"); } |