summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-07 18:18:18 +0000
committerDevang Patel <dpatel@apple.com>2010-07-07 18:18:18 +0000
commitcc87bfb59b34a0543b48d93f661f2abaee6b4cee (patch)
treeca13a4edddf863fff592f1418580ab094d121a76 /lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parent643fffe429cc467584c795f6177741944729e0a5 (diff)
downloadllvm-cc87bfb59b34a0543b48d93f661f2abaee6b4cee.tar.gz
llvm-cc87bfb59b34a0543b48d93f661f2abaee6b4cee.tar.bz2
llvm-cc87bfb59b34a0543b48d93f661f2abaee6b4cee.tar.xz
Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/InstrEmitter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 935679a113..f36620c3ed 100644
--- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -604,9 +604,10 @@ InstrEmitter::EmitDbgValue(SDDbgValue *SD,
} else if (SD->getKind() == SDDbgValue::CONST) {
const Value *V = SD->getConst();
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
- // FIXME: SDDbgValues aren't updated with legalization, so it's possible
- // to have i128 values in them at this point. As a crude workaround, just
- // drop the debug info if this happens.
+ // FIXME: SDDbgValue constants aren't updated with legalization, so it's
+ // possible to have i128 constants in them at this point. Dwarf writer
+ // does not handle i128 constants at the moment so, as a crude workaround,
+ // just drop the debug info if this happens.
if (!CI->getValue().isSignedIntN(64))
MIB.addReg(0U);
else