diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-14 05:31:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-14 05:31:26 +0000 |
commit | bb57febe3cbc2e968abee728b615918fc734ff7a (patch) | |
tree | b0c6fcd89289e56b616cd0f987805515cab1a7da /lib/CodeGen | |
parent | 3e883734fab4da8413f16957dd116d4ffd9d3223 (diff) | |
download | external_llvm-bb57febe3cbc2e968abee728b615918fc734ff7a.zip external_llvm-bb57febe3cbc2e968abee728b615918fc734ff7a.tar.gz external_llvm-bb57febe3cbc2e968abee728b615918fc734ff7a.tar.bz2 |
Fix undefined behavior: binding null pointer to reference. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachineSSAUpdater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineSSAUpdater.cpp b/lib/CodeGen/MachineSSAUpdater.cpp index acb1ee6..076547a 100644 --- a/lib/CodeGen/MachineSSAUpdater.cpp +++ b/lib/CodeGen/MachineSSAUpdater.cpp @@ -42,7 +42,7 @@ MachineSSAUpdater::MachineSSAUpdater(MachineFunction &MF, } MachineSSAUpdater::~MachineSSAUpdater() { - delete &getAvailableVals(AV); + delete static_cast<AvailableValsTy*>(AV); } /// Initialize - Reset this object to get ready for a new set of SSA |