diff options
Diffstat (limited to 'clang/CodeGen/CGExpr.cpp')
| -rw-r--r-- | clang/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CGExpr.cpp b/clang/CodeGen/CGExpr.cpp index 8d136bc0b42..c20680bc4ea 100644 --- a/clang/CodeGen/CGExpr.cpp +++ b/clang/CodeGen/CGExpr.cpp @@ -273,7 +273,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { return LValue::MakeAddr(CGM.GetAddrOfFunctionDecl(FD, false)); } else if (const FileVarDecl *FVD = dyn_cast<FileVarDecl>(D)) { - return LValue::MakeAddr(CGM.GetAddrOfFileVarDecl(FVD, false)); + return LValue::MakeAddr(CGM.GetAddrOfGlobalVar(FVD, false)); } assert(0 && "Unimp declref"); //an invalid LValue, but the assert will |

