summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0ff8f0eaf9eaf51c1a13ccf0ff79d0bfe4ec1a74 (patch)
treec3f738d4bdc0d02f7ae1ab304713edafd516b3ae /llvm/lib/CodeGen/MachineSSAUpdater.cpp
parent70409991bc92beaced7a9abb7c5f2f1e30cc3721 (diff)
downloadbcm5719-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.cpp2
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
OpenPOWER on IntegriCloud