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 | a0851a2cb01def8e5ba2da8c113c10be9e543c78 (patch) | |
| tree | edbb9c55b649699989bfe006c118c0dd5efe3aa5 | |
| parent | a5981ba8ef41de067574fa3eef81e96226ffc0f6 (diff) | |
| download | bcm5719-llvm-a0851a2cb01def8e5ba2da8c113c10be9e543c78.tar.gz bcm5719-llvm-a0851a2cb01def8e5ba2da8c113c10be9e543c78.zip | |
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.
llvm-svn: 177399
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 193121b2deb..556999f61b3 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/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"); } |

