aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-07 18:03:19 +0000
committerChris Lattner <sabre@nondot.org>2010-04-07 18:03:19 +0000
commiteb237b4ed4354467ff221d31ab5c408896819fbf (patch)
tree12d9796b8fed5f46d853e433a08c85df2495a353 /lib
parent62060a802b8ba875bf7ed22eee05f77c55581f56 (diff)
downloadexternal_llvm-eb237b4ed4354467ff221d31ab5c408896819fbf.zip
external_llvm-eb237b4ed4354467ff221d31ab5c408896819fbf.tar.gz
external_llvm-eb237b4ed4354467ff221d31ab5c408896819fbf.tar.bz2
fix a latent bug my inline asm stuff exposed:
MachineOperand::isIdenticalTo wasn't handling metadata operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 39b7fb5..f2ba484 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -192,6 +192,8 @@ bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const {
return getBlockAddress() == Other.getBlockAddress();
case MachineOperand::MO_MCSymbol:
return getMCSymbol() == Other.getMCSymbol();
+ case MachineOperand::MO_Metadata:
+ return getMetadata() == Other.getMetadata();
}
}