mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
remove some extraneous casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100287 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d52c072777
commit
4d12fdc2d9
@ -158,7 +158,7 @@ static int AsLexInput(const char *ProgName) {
|
||||
if (!TheTarget)
|
||||
return 1;
|
||||
|
||||
llvm::OwningPtr<MCAsmInfo> MAI((MCAsmInfo*) TheTarget->createAsmInfo(TripleName));
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
AsmLexer Lexer(*MAI);
|
||||
@ -266,7 +266,7 @@ static int AssembleInput(const char *ProgName) {
|
||||
SrcMgr.setIncludeDirs(IncludeDirs);
|
||||
|
||||
|
||||
llvm::OwningPtr<MCAsmInfo> MAI((MCAsmInfo*) TheTarget->createAsmInfo(TripleName));
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
MCContext Ctx(*MAI);
|
||||
|
Loading…
Reference in New Issue
Block a user