Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index 937a15bf265691f68829972218bf4856a204de43..3fcf8a6204243b4651c0ee625df902dbd1f02aae 100644 |
--- a/src/IceTargetLoweringX8632.cpp |
+++ b/src/IceTargetLoweringX8632.cpp |
@@ -4555,6 +4555,9 @@ TargetGlobalInitX8632::TargetGlobalInitX8632(GlobalContext *Ctx) |
: TargetGlobalInitLowering(Ctx) {} |
void TargetGlobalInitX8632::lower(const VariableDeclaration &Var) { |
+ // TODO(jvoung): handle this without text. |
+ if (Ctx->getFlags().UseELFWriter) |
+ return; |
Ostream &Str = Ctx->getStrEmit(); |