aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Designator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/Designator.cc')
-rw-r--r--lib/CodeGen/Designator.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/Designator.cc b/lib/CodeGen/Designator.cc
index b9c9a1a..12d3b60 100644
--- a/lib/CodeGen/Designator.cc
+++ b/lib/CodeGen/Designator.cc
@@ -262,8 +262,5 @@ Value *CodeGen::loadFromLValue(const LValueInfo &LV) {
return nullptr;
}
Value *Val = Builder->CreateLoad(Info->LLVMType, LV.Addr);
- if (Info->isString()) {
- Val = emitStringNullGuard(Val);
- }
return Val;
}