diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-08-11 04:19:28 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-08-11 04:19:28 +0000 |
commit | 7af183d841fc1c81e6c01d469a7b24da42425606 (patch) | |
tree | 2cacf46a3d40e770277702b7fe5932ec89bc242d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7317de6c15751b6a4d963021a5b4410c7c877981 (diff) | |
download | llvm-7af183d841fc1c81e6c01d469a7b24da42425606.zip llvm-7af183d841fc1c81e6c01d469a7b24da42425606.tar.gz llvm-7af183d841fc1c81e6c01d469a7b24da42425606.tar.bz2 |
Propagate SourceLocations through to get a Loc on float_cast_overflow
Summary:
float_cast_overflow is the only UBSan check without a source location attached.
This patch propagates SourceLocations where necessary to get them to the
EmitCheck() call.
Reviewers: rsmith, ABataev, rjmccall
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D11757
llvm-svn: 244568
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 7306faa..95a512c 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2710,13 +2710,13 @@ public: /// Emit a conversion from the specified type to the specified destination /// type, both of which are LLVM scalar types. llvm::Value *EmitScalarConversion(llvm::Value *Src, QualType SrcTy, - QualType DstTy); + QualType DstTy, SourceLocation Loc); /// Emit a conversion from the specified complex type to the specified /// destination type, where the destination type is an LLVM scalar type. llvm::Value *EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, - QualType DstTy); - + QualType DstTy, + SourceLocation Loc); /// EmitAggExpr - Emit the computation of the specified expression /// of aggregate type. The result is computed into the given slot, |