Propagate SourceLocations through to get a Loc on float_cast_overflow
authorFilipe Cabecinhas <me@filcab.net>
Tue, 11 Aug 2015 04:19:28 +0000 (04:19 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Tue, 11 Aug 2015 04:19:28 +0000 (04:19 +0000)
commit7af183d841fc1c81e6c01d469a7b24da42425606
tree2cacf46a3d40e770277702b7fe5932ec89bc242d
parent7317de6c15751b6a4d963021a5b4410c7c877981
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
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprComplex.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGen/catch-undef-behavior.c