summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineSSAUpdater.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-14 05:31:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-14 05:31:26 +0000
commitbb57febe3cbc2e968abee728b615918fc734ff7a (patch)
treeb0c6fcd89289e56b616cd0f987805515cab1a7da /lib/CodeGen/MachineSSAUpdater.cpp
parent3e883734fab4da8413f16957dd116d4ffd9d3223 (diff)
downloadllvm-bb57febe3cbc2e968abee728b615918fc734ff7a.tar.gz
llvm-bb57febe3cbc2e968abee728b615918fc734ff7a.tar.bz2
llvm-bb57febe3cbc2e968abee728b615918fc734ff7a.tar.xz
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/MachineSSAUpdater.cpp')
-rw-r--r--lib/CodeGen/MachineSSAUpdater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineSSAUpdater.cpp b/lib/CodeGen/MachineSSAUpdater.cpp
index acb1ee6cb6..076547a5ed 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