aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCInst.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r--include/llvm/MC/MCInst.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index 4766815da5..0b657bd146 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -50,7 +50,11 @@ class MCOperand {
};
public:
- MCOperand() : Kind(kInvalid), FPImmVal(0.0) {}
+ // @LOCALMOD-START
+ // Initialize ImmVal instead of FPImmVal, thanks to
+ // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416
+ MCOperand() : Kind(kInvalid), ImmVal(0) {}
+ // @LOCALMOD-END
bool isValid() const { return Kind != kInvalid; }
bool isReg() const { return Kind == kRegister; }