diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-11-30 22:27:54 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-11-30 22:27:54 +0000 |
commit | 999d8bc38e2d8fad5acd978517bc6ba3047fa201 (patch) | |
tree | 2f0c5aefad88afdff069d5114f8ec39dc0bac616 /lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | ac9464e9360bbf5ee71277b106fefe2f9f374ba4 (diff) |
Fix a bug in APFloat.cpp: declare APFloat after fltSemantics it
uses. APFloat::convert() takes the pointer to the fltSemantics
variable, which is later accessed it in ~APFloat() desctructor.
That is, semantics must still be alive at the moment we delete
APFloat.
Found by experimental AddressSanitizer use-after-scope checker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
0 files changed, 0 insertions, 0 deletions