summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitf839ee0c13fedf71bab7a48cb4275a52487cfb85 (patch)
treed7a6f3fdaa84f98f07d0393bcbae2cdd1f25df10 /llvm/lib/CodeGen
parent3b4abb67921126aefbf67d15bd6cdb7aa7cf47ff (diff)
downloadbcm5719-llvm-f839ee0c13fedf71bab7a48cb4275a52487cfb85.tar.gz
bcm5719-llvm-f839ee0c13fedf71bab7a48cb4275a52487cfb85.zip
fix a latent bug my inline asm stuff exposed:
MachineOperand::isIdenticalTo wasn't handling metadata operands. llvm-svn: 100636
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 39b7fb507f8..f2ba484e4f0 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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();
}
}
OpenPOWER on IntegriCloud