aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-07-09 00:52:44 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-07-09 00:52:44 +0000
commitfcd8dafd8e5d580d44033bef5c52bdc8f8609d4d (patch)
treecd319eaecb5cbf73230c4cd3085c76c8fd05b3bc /include/llvm/Support/IRBuilder.h
parent0690c15cb633ee060f9d1bd432813b849d1024d6 (diff)
downloadexternal_llvm-fcd8dafd8e5d580d44033bef5c52bdc8f8609d4d.zip
external_llvm-fcd8dafd8e5d580d44033bef5c52bdc8f8609d4d.tar.gz
external_llvm-fcd8dafd8e5d580d44033bef5c52bdc8f8609d4d.tar.bz2
Work around an ICE in gcc-4.2.4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index 5069ead..0fe0c3c 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -402,7 +402,8 @@ public:
}
Value *CreateGlobalString(const char *Str = "", const char *Name = "") {
Constant *StrConstant = Context.getConstantArray(Str, true);
- GlobalVariable *gv = new GlobalVariable(*BB->getParent()->getParent(),
+ Module &M = *BB->getParent()->getParent();
+ GlobalVariable *gv = new GlobalVariable(M,
StrConstant->getType(),
true,
GlobalValue::InternalLinkage,