Skip to content
Commit 2b431d97 authored by Alexey Samsonov's avatar Alexey Samsonov
Browse files

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.

llvm-svn: 169047
parent d2901e94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment