diff options
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index 3c4a68baeac..b315ab40b4f 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/CodeGen/CodeGenFunction.cpp @@ -39,13 +39,13 @@ llvm::BasicBlock *CodeGenFunction::getBasicBlockForLabel(const LabelStmt *S) { } -const llvm::Type *CodeGenFunction::ConvertType(QualType T, SourceLocation Loc) { - return CGM.getTypes().ConvertType(T, Loc); +const llvm::Type *CodeGenFunction::ConvertType(QualType T) { + return CGM.getTypes().ConvertType(T); } void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { - LLVMIntTy = ConvertType(getContext().IntTy, FD->getLocation()); - LLVMPointerWidth = Target.getPointerWidth(FD->getLocation()); + LLVMIntTy = ConvertType(getContext().IntTy); + LLVMPointerWidth = Target.getPointerWidth(SourceLocation()); CurFn = cast<llvm::Function>(CGM.GetAddrOfGlobalDecl(FD)); CurFuncDecl = FD; |