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 | 0ff8f0eaf9eaf51c1a13ccf0ff79d0bfe4ec1a74 (patch) | |
tree | c3f738d4bdc0d02f7ae1ab304713edafd516b3ae /llvm/lib/CodeGen/MachineSSAUpdater.cpp | |
parent | 70409991bc92beaced7a9abb7c5f2f1e30cc3721 (diff) | |
download | bcm5719-llvm-0ff8f0eaf9eaf51c1a13ccf0ff79d0bfe4ec1a74.tar.gz bcm5719-llvm-0ff8f0eaf9eaf51c1a13ccf0ff79d0bfe4ec1a74.zip |
Fix undefined behavior: binding null pointer to reference. No functionality change.
llvm-svn: 161853
Diffstat (limited to 'llvm/lib/CodeGen/MachineSSAUpdater.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineSSAUpdater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSSAUpdater.cpp b/llvm/lib/CodeGen/MachineSSAUpdater.cpp index acb1ee6cb6e..076547a5ed8 100644 --- a/llvm/lib/CodeGen/MachineSSAUpdater.cpp +++ b/llvm/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 |