summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-06 22:27:43 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-06 22:27:43 +0000
commitef512b992943dbd5619176f770b5bac8efa33dd0 (patch)
treee106c2ceca70e12d0f2205b00bd2e02deb70f887 /clang/lib/CodeGen/CGCall.cpp
parent6a9d2cfadd9cf8964b75436940a9e16fbc8a9417 (diff)
downloadbcm5719-llvm-ef512b992943dbd5619176f770b5bac8efa33dd0.tar.gz
bcm5719-llvm-ef512b992943dbd5619176f770b5bac8efa33dd0.zip
CodeGen: Initial instrumentation based PGO implementation
llvm-svn: 198640
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 8cc61e99bf5..4bdd032a2b9 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2184,6 +2184,7 @@ void CodeGenFunction::EmitNoreturnRuntimeCallOrInvoke(llvm::Value *callee,
call->setCallingConv(getRuntimeCC());
Builder.CreateUnreachable();
}
+ PGO.setCurrentRegionCount(0);
}
/// Emits a call or invoke instruction to the given nullary runtime
OpenPOWER on IntegriCloud