commit | bb57febe3cbc2e968abee728b615918fc734ff7a | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Aug 14 05:31:26 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Aug 14 05:31:26 2012 +0000 |
tree | b0c6fcd89289e56b616cd0f987805515cab1a7da | |
parent | 3e883734fab4da8413f16957dd116d4ffd9d3223 [diff] [blame] |
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
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() { - delete &getAvailableVals(AV); + delete static_cast<AvailableValsTy*>(AV); } /// Initialize - Reset this object to get ready for a new set of SSA