summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-05-17 18:32:40 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-05-17 18:32:40 +0000
commit14a87459906408ef325940b07bcf5fea3183f5fe (patch)
tree62e34e24af7ef8663ecf42c6423079cf8d304658 /llvm/lib/CodeGen/MachineVerifier.cpp
parent3d6439517c37d54d48dcf99e389020efa52dc899 (diff)
downloadbcm5719-llvm-14a87459906408ef325940b07bcf5fea3183f5fe.tar.gz
bcm5719-llvm-14a87459906408ef325940b07bcf5fea3183f5fe.zip
Fix a verifier bug.
Make sure useless (def-only) intervals also get verified. llvm-svn: 157000
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 231c91b00b2..a2027509783 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1076,7 +1076,7 @@ void MachineVerifier::verifyLiveIntervals() {
const LiveInterval &LI = *LVI->second;
// Spilling and splitting may leave unused registers around. Skip them.
- if (MRI->use_empty(LI.reg))
+ if (MRI->reg_nodbg_empty(LI.reg))
continue;
// Physical registers have much weirdness going on, mostly from coalescing.
OpenPOWER on IntegriCloud